FontUtil

object FontUtil

Provides methods for rending text.

Author

Aton

Functions

Link copied to clipboard

Returns a copy of the String where the only first letter is capitalized.

Link copied to clipboard
fun drawCenteredString(text: String, x: Double, y: Double, color: Int = ColorUtil.textcolor)
Link copied to clipboard
fun drawCenteredStringWithShadow(text: String, x: Double, y: Double, color: Int = ColorUtil.textcolor)
Link copied to clipboard
fun drawSplitString(text: String, x: Int, y: Int, wrapWidth: Int, color: Int = ColorUtil.textcolor)

Draws a string with line wrapping.

Link copied to clipboard
fun drawString(text: String, x: Double, y: Double, color: Int = ColorUtil.textcolor)
fun drawString(text: String, x: Int, y: Int, color: Int = ColorUtil.textcolor)
Link copied to clipboard
fun drawStringWithShadow(text: String, x: Double, y: Double, color: Int = ColorUtil.textcolor)
Link copied to clipboard
fun drawTotalCenteredString(text: String, x: Double, y: Double, color: Int = ColorUtil.textcolor)
Link copied to clipboard
fun drawTotalCenteredStringWithShadow(text: String, x: Double, y: Double, color: Int = ColorUtil.textcolor)
Link copied to clipboard

Returns a copy of the String where the first letter is capitalized.

Link copied to clipboard
fun getSplitHeight(text: String, wrapWidth: Int): Int
Link copied to clipboard
Link copied to clipboard

Properties

Link copied to clipboard