Classes
- AbstractBitmapFont
- BitmapFont
- BitmapFontManagerClass
- CanvasTextMetrics
- DynamicBitmapFont
- HTMLTextStyle
- TextStyle
Interface Definitions
-
The options for installing a new BitmapFont. Once installed the font will be available for use in the BitmapText. It can be accessed by the
fontFamilyproperty of the TextStyle.Install a new BitmapFont will create the characters provided for the font and store them in the cache. But don't worry, if a character is requested that hasn't been generated yet, it will be created on the fly.
Properties:
Name Type Default Description charsstring | (string | string[])[] BitmapFont.ALPHANUMERICCharacters included in the font set. You can also use ranges. For example,
[['a', 'z'], ['A', 'Z'], "!@#$%^&*()~{}[] "]. Don't forget to include spaces ' ' in your character set!namestring the name of the font, this will be the name you use in the fontFamily of text style to access this font
paddingnumber 4Padding between glyphs on texture atlas. Lower values could mean more visual artifacts and bleeding from other glyphs, larger values increase the space required on the texture.
resolutionnumber 1Render resolution for glyphs.
skipKerningboolean falseSkip generation of kerning information for the BitmapFont. If true, this could potentially increase the performance, but may impact the rendered text appearance.
styleTextStyle | TextStyleOptions Style options to render with BitmapFont.
-
Options for creating a BitmapFont.