Class: AbstractBitmapFont

AbstractBitmapFont

An abstract representation of a bitmap font.

new AbstractBitmapFont ()

Implements

  • Omit

Members

applyFillAsTint boolean

should the fill for this font be applied as a tint to the text.

Default Value:
  • true

baseLineOffset number readonly

The offset of the font face from the baseline.

Default Value:
  • 0

baseMeasurementFontSize number readonly

The size of the font face in pixels.

Default Value:
  • 100

chars Record<string, CharData> readonly

The map of characters by character code.

distanceField BitmapFontData["distanceField"] readonly

The range and type of the distance field for this font.

distanceFieldRange NonNullable<BitmapFontData["distanceField"]>["range"] Deprecated : since 8.0.0 Use `distanceField.type` instead.

The kind of distance field for this font or "none".

distanceFieldType NonNullable<BitmapFontData["distanceField"]>["type"] Deprecated : since 8.0.0 Use `distanceField.range` instead.

The range of the distance field in pixels.

font BitmapFontData["fontFamily"] Deprecated : since 8.0.0 Use `fontFamily` instead.

The name of the font face.

fontFamily string readonly

The name of the font face

Default Value:
  • ""

fontMetrics FontMetrics readonly

The metrics of the font face.

lineHeight number readonly

The line-height of the font face in pixels.

Default Value:
  • 0

pages { texture : Texture }[] readonly

The map of base page textures (i.e., sheets of glyphs).

pageTextures AbstractBitmapFont<FontType>["pages"] Deprecated : since 8.0.0 Use `pages` instead.

The map of base page textures (i.e., sheets of glyphs).

size BitmapFontData["fontSize"] Deprecated : since 8.0.0 Use `fontMetrics.fontSize` instead.

The size of the font face in pixels.