Holds information and bitmap characters for a bitmap font.
Static variables
staticinlineread onlyDEFAULT_CHARS:String = " !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~"
Default letters for XNA font.
Static methods
staticfromAngelCode(source:FlxBitmapFontGraphicAsset, data:FlxAngelCodeAsset):FlxBitmapFont
Loads font data in AngelCode's format.
Parameters:
source | Font image source.  | 
|---|---|
data | Font data.  | 
Returns:
Generated bitmap font object.
staticfromMonospace(source:FlxBitmapFontGraphicAsset, ?letters:UnicodeString, charSize:FlxPoint, ?region:FlxRect, ?spacing:FlxPoint):FlxBitmapFont
Loads a monospaced bitmap font.
Parameters:
source | Source image for this font. Use white pixels if you intend to change the color.  | 
|---|---|
letters | The characters used in the font set, in display order.
You can use the   | 
charSize | The size of each character in the font set.  | 
region | The region of image to use for the font. Default is null which means that the whole image will be used.  | 
spacing | Spaces between characters in the font set. Default is   | 
Returns:
Generated bitmap font object.
staticfromXNA(source:FlxBitmapFontGraphicAsset, ?letters:UnicodeString, charBGColor:Int = FlxColor.TRANSPARENT):FlxBitmapFont
Load bitmap font in XNA/Pixelizer format. May work incorrectly on HTML5. Utterly unreliable on Brave Browser with shields up.
Parameters:
source | Source image for this font.  | 
|---|---|
letters | 
  | 
charBGColor | An additional background color to remove. Defaults to   | 
Returns:
Generated bitmap font object.
staticgetDefaultFont():FlxBitmapFont
Retrieves the default FlxBitmapFont.
May work incorrectly on HTML5.
Utterly unreliable on Brave Browser with shields up.