Log In  
Follow
llasram

Cart #mfontutil-0 | 2024-02-12 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
2

A custom font utility cartridge. Like #font_snippet operates on fonts drawn as sprites, but:

  1. Supports variable-width font attributes;
  2. Supports copying from fonts to the spritesheet; and
  3. 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:

  1. base width and height are calculated automatically, and sprite 0 values add as padding instead;

[ Continue Reading.. ]

2
0 comments