Skip to content

BitmapFontOptions

The look of a generated bitmap font (as engine.text’s style), and the characters to bake up front.

  • Pick<TextStyle, "size" | "font" | "weight" | "color" | "outline" | "outlineWidth" | "shadow" | "shadowBlur">

optional size?: number

Font size, stage units.

TextStyle.size


optional font?: string

CSS font family list.

TextStyle.font


optional weight?: string | number

CSS font weight (default 700).

TextStyle.weight


optional color?: string

CSS colour (default cream, #FBEFE3).

TextStyle.color


optional outline?: string | boolean

A dark outline (true: the default halo colour) of this width (stage units).

TextStyle.outline


optional outlineWidth?: number

The outline’s width, stage units.

TextStyle.outlineWidth


optional shadow?: string | boolean

A soft shadow (true: the default halo colour), blur in stage units.

TextStyle.shadow


optional shadowBlur?: number

The shadow’s blur radius, stage units.

TextStyle.shadowBlur


optional chars?: string

Characters baked now (default the digits); any other is baked the first time it is drawn.