BitmapFont
class BitmapFont(val fontSize: Float, val lineHeight: Float, val base: Float, val capHeight: Float, val padding: FontMetrics.Padding, val textures: List<Texture>, val glyphs: Map<Int, BitmapFont.Glyph>, val kernings: Map<Int, Kerning>, val pages: Int = 1) : Font
A Font that handles rendering of bitmap fonts using the BMFont text format.
The text is drawn using a SpriteBatch. The text can also be cached in a FontCache to render static text without having to compute the geometry of each glyph every frame. The BitmapFontCache can be used specifically for this class.
The textures required for a BitmapFont are managed and may be disposed by directly calling the dispose method on the BitmapFont object.
Author
Colt Daily
Constructors
Link copied to clipboard
fun BitmapFont(fontSize: Float, lineHeight: Float, base: Float, capHeight: Float, padding: FontMetrics.Padding, textures: List<Texture>, glyphs: Map<Int, BitmapFont.Glyph>, kernings: Map<Int, Kerning>, pages: Int = 1)
Types
Functions
Link copied to clipboard
Link copied to clipboard
Fetches the Kerning.amount between two characters.
Fetches the Kerning.amount between two codepoint.
Link copied to clipboard
Determines if the character is considered whitespace.
Link copied to clipboard
Determines if the character is considered a "wrap" character.