Skip to content

BitmapFontVariant

Defined in: packages/renderer/src/assets.ts:366

One weight/style emphasis to bake as a sibling atlas of a base bitmap font. Identified by the fontWeight/fontStyle a BitmapText will ask for — a variant only differs from the base along the bold and italic axes, so a request for fontWeight: "700" resolves the atlas baked for fontWeight: "bold".

This is the declarative shape the loader-level bitmap-font config reuses, so the same variants array can be authored inline or hung off an asset manifest.

optional fontStyle?: TextStyleFontStyle

Defined in: packages/renderer/src/assets.ts:373

Slant to synthesise this variant at — "italic" or "oblique".


optional fontWeight?: TextStyleFontWeight

Defined in: packages/renderer/src/assets.ts:371

Weight to synthesise this variant at. Keyword ("bold") or numeric string ("700"); >= 600 (or "bold"/"bolder") selects the bold axis.


optional style?: Partial<TextStyleOptions>

Defined in: packages/renderer/src/assets.ts:379

Extra TextStyle props baked into this variant’s glyphs only, layered over the base font’s style. fontFamily / fontSize / fontWeight / fontStyle are managed by the variant pipeline.