Represents a single character in a bitmap font. This class stores all the metrics needed to render a character from a bitmap font texture atlas.

Variables

id:Int

The character id (unicode value)

x:Float

The x position of the character in the texture atlas

y:Float

The y position of the character in the texture atlas

width:Float

The width of the character in the texture atlas

height:Float

The height of the character in the texture atlas

xOffset:Float

The x offset to apply when rendering this character

yOffset:Float

The y offset to apply when rendering this character

xAdvance:Float

The horizontal advance (spacing) after this character

page:Int

The texture page index where this character is stored