Compare Bitmap and TrueType fonts
masterThe driver supports two font types: Bitmap Fonts (fixed-size, extracted from PC VGA/BIOS images) and TrueType Fonts (variable width, converted from .ttf files).
| Attribute | Bitmap Fonts | TrueType Fonts |
|---|---|---|
| Source | PC BIOS images | True-Type fonts |
| Conversion Tool | text_font_converter.py | write_font_converter.py |
| Character Sets | 128 and 256 PC character sets | User defined |
| Pixel Sizes | 8x8, 8x16, 16x6, and 16x32 | width 256 pixels or less |
| Rendering Method | text() method | write() method |
All fonts are stored as Python modules and should be imported using standard Python import statements. To save memory, pre-compile these modules to .mpy files or convert them to frozen bytecode in the MicroPython firmware.