A custom font utility cartridge. Like #font_snippet operates on fonts drawn as sprites, but:
- Supports variable-width font attributes;
- Supports copying from fonts to the spritesheet; and
- Provides utility command functions meant to be run from the pico-8 prompt.
The command functions are:
democfont()
– load the custom font from the spritesheet and print demo text using it.
loadfont()
- load the custom font from the spritesheet. Only pixels with color 7 transfer. Sprite 0 sets base font attributes: one row per attribute byte. A font is made variable-width by setting pixel (0, 5), in which case:
- base width and height are calculated automatically, and sprite 0 values add as padding instead;