BMFontData provides the TextureData for TextPrograms by using the data of a embedded 8x8 pixels monospace bitmapfont.
Constructor
new(fontData:Array<Int>, ?fontRanges:Array<Array<Int>>)
Creates a new BMFontData instance and generates the x-tiled TextureData for all glyphes.
Parameters:
fontData | the data of |
|---|---|
fontRanges | is need if the custom font is limited by charcode-ranges |
Variables
Methods
getTile(charCode:UInt):Int
Returns the tile-number of the TextElement to map the glyph to the charCode in depend of the ranges.
Parameters:
charCode | the ascii charcode |
|---|