IFontRenderer

@NullMarked
interface IFontRenderer(source)

Functions

Link copied to clipboard
open fun getCharWidth(c: Char): Int
Link copied to clipboard
abstract fun getHeight(): Int
Link copied to clipboard
abstract fun getStringWidth(structuredText: StructuredText): Int
open fun getStringWidth(string: String): Int
Link copied to clipboard
open fun splitLines(structuredText: StructuredText): List<StructuredText>
Link copied to clipboard
abstract fun splitText(structuredText: StructuredText, width: Int): List<StructuredText>
Link copied to clipboard
open fun trimStringToWidth(string: String, width: Int): String
abstract fun trimStringToWidth(string: String, width: Int, reversed: Boolean): String