ReadonlycharsThe map of characters by character code.
ReadonlydistanceThe range of the distance field in pixels.
ReadonlydistanceThe kind of distance field for this font or "none".
ReadonlyfontThe name of the font face.
ReadonlylineThe line-height of the font face in pixels.
ReadonlypageThe map of base page textures (i.e., sheets of glyphs).
ReadonlysizeThe size of the font face in pixels.
Static ReadonlyALPHAThis character set includes all the letters in the alphabet (both lower- and upper- case).
Static ReadonlyALPHANUMERICThis character set is the union of BitmapFont.ALPHA and BitmapFont.NUMERIC.
Static ReadonlyASCIIThis character set consists of all the ASCII table.
Static ReadonlyavailableCollection of available/installed fonts.
Static ReadonlydefaultCollection of default options when using BitmapFont.from.
Static ReadonlyNUMERICThis character set includes all decimal digits (from 0 to 9).
Remove references to created glyph textures.
StaticfromGenerates a bitmap-font for the given style and character set. This does not support
kernings yet. With style properties, only the following non-layout properties are used:
The name of the custom font to use with BitmapText.
OptionaltextStyle: Pixi.TextStyle | Partial<ITextStyle>Style options to render with BitmapFont.
Optionaloptions: IBitmapFontOptionsSetup options for font or name of the font.
Font generated by style options.
StaticinstallRegister a new bitmap font.
The characters map that could be provided as xml or raw string.
List of textures for each page.
OptionalownsTextures: booleanSet to true to destroy page textures
when the font is uninstalled. By default fonts created with
BitmapFont.from or from the BitmapFontLoader are true.
Result font object with font, size, lineHeight and char fields.
StaticuninstallRemove bitmap font by name.
Name of the font to uninstall.
BitmapFont represents a typeface available for use with the BitmapText class. Use the
installmethod for adding a font to be used.Memberof
PIXI