Skip to content

bitmapFont

bitmapFont(path): BitmapFontHandle

Defined in: renderer/src/assets.ts:38

Create a typed asset handle for a bitmap font — a BMFont .fnt/.xml descriptor plus its glyph atlas. Resolve it through the asset manager (engine.assets) like any other handle; the loaded font registers itself under the fontFamily declared in the descriptor, so pass that same name as the bitmap.font discriminator on UIText / TextComponent.

For runtime-baked fonts from a .ttf instead, see installBitmapFont.

string

BitmapFontHandle