Interface: BitmapFontData

BitmapFontData

The raw data of a bitmap font.

Properties:
Name Type Description
baseLineOffset number

The offset of the font face from the baseline.

chars Record<string, RawCharData>

The map of characters by character code.

distanceField {
   type: "sdf" | "msdf" | "none",
   range: number
}

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

fontFamily string

The name of the font face.

fontSize number

The size of the font face in pixels.

lineHeight number

The line-height of the font face in pixels.

pages { id : number, file : string }[]

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

Members

baseLineOffset number

The offset of the font face from the baseline.

chars Record<string, RawCharData>

The map of characters by character code.

distanceField {
   type: "sdf" | "msdf" | "none",
   range: number
}

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

fontFamily string

The name of the font face.

fontSize number

The size of the font face in pixels.

lineHeight number

The line-height of the font face in pixels.

pages { id : number, file : string }[]

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