Advanced
Static
Readonly
ALPHAThis character set includes all the letters in the alphabet (both lower- and upper- case).
Static
Readonly
ALPHANUMERICThis character set is the union of BitmapFont.ALPHA
and BitmapFont.NUMERIC
.
Static
Readonly
ASCIIThis character set consists of all the ASCII table.
Static
defaultDefault options for installing a new BitmapFont.
Static
Readonly
NUMERICThis character set includes all decimal digits (from 0 to 9).
Static
getGet a font for the specified text and style.
The text to get the font for
The style to use
Static
getGet the layout of a text for the specified style.
The text to get the layout for
The style to use
Whether to ignore whitespaces at the end of each line
Static
installGenerates a bitmap-font for the given style and character set
Setup options for font generation.
Font generated by style options.
Optional
style: TextStyle | TextStyleOptionsOptional
options: BitmapFontInstallOptionsStatic
measureMeasure the text using the specified style.
The text to measure
The style to use
Whether to ignore whitespaces at the end of each line
Static
uninstallUninstalls a bitmap font from the cache.
The name of the bitmap font to uninstall.
The BitmapFontManager is a helper that exists to install and uninstall fonts into the cache for BitmapText objects.
Example