Demonstrated Features:
-
BitmapFont.load()
— Load bitmap fonts from .btfont files
-
BT.printFont(font, pos, text, color)
— Render bitmap text
-
Multiple text colors and effects (rainbow, pulsing)
-
Character-by-character color control
-
Variable-width glyphs with per-character offsets
How to use your own bitmap font:
1. Create a .btfont file (JSON) with glyph data and texture
2. Use const font = await BitmapFont.load('path/to/font.btfont')
3. Render with BT.printFont(font, position, text, color)