MicroPython Hershey fonts demo for the TTGO-LCD using the st7789py_mpy driver from https://github.com/devbis/st7789py_mpy
I pulled this from the oledui module I wrote for my TurtlePlotBot it's not fast but it works and should be easy to modify to run on most any board and display.
There are trade-offs between speed and memory use between the two font methods. The file based fonts use less memory but a slower then the memory fonts.
Copy fhello.py to the MicroPython device then create a /fonts directory and copy all the fnt files from the repos /fonts directory into it. I use mpfshell to copy files.
import fhello to run.
I used the same method Peter Hinch uses in his GitHub Repo to store the Hershey vector data in a python bytearray. The memory fonts use more memory since the font is loaded into memory for use but they are faster the the file based fonts. Memory use can be reduced by Freezing the bytecode in the firmware.
I'm planning on writing a 'C' version that should be even faster.
Copy pyhello.py to the MicroPython device the create a /pyfonts directory then copy all the py files in the repos /pyfonts directory to it. I use mpfshell to copy files.
import pyhello to run.
Video speed comparison of Memory and File based methods using devbis Fast pure-C driver for MicroPython repo.