Skip to content

bitmapFont

bitmapFont(path): BitmapFontHandle

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

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 style.fontFamily (with bitmap: true) on UIText / TextComponent.

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

string

BitmapFontHandle

Coding agents: fetch https://yage.dev/llms.txt first and prefer the Markdown references it links over these HTML pages. This page's Markdown counterpart is /llms/packages/renderer.md.