A BitmapChar contains the information about one char of a bitmap font.
You don't have to use this class directly in most cases. The TextField class contains methods that handle bitmap fonts for you.

Constructor

new(id:Int, x:Float, y:Float, width:Float, height:Float, xOffset:Float, yOffset:Float, xAdvance:Float)

Creates a char with a texture and its properties.

Variables

read onlycharID:Int

The unicode ID of the char.

read onlyheight:Float

The height of the character in points.

read onlywidth:Float

The width of the character in points.

read onlyx:Float

read onlyxAdvance:Float

The number of points the cursor has to be moved to the right for the next char.

read onlyxOffset:Float

The number of points to move the char in x direction on character arrangement.

read onlyy:Float

read onlyyOffset:Float

The number of points to move the char in y direction on character arrangement.

Methods

addKerning(charID:Int, amount:Float):Void

Adds kerning information relative to a specific other character ID.

getKerning(charID:Int):Float

Retrieve kerning information relative to the given character ID.