Our great sponsors
-
micropython-font-to-py
A Python 3 utility to convert fonts to Python source capable of being frozen as bytecode
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
The writer.py defines the Writer class that can be used to render the fonts converted by the utility from point 1 to the screen, assuming its driver is derived from the framebuf class. If I'm not mistaken the driver provided by Waveshare should be usable with Writer out of the box, if not there are some workarounds for that, so it's not really a problem. Anyway, the writer.py should be saved on the Pico, along with the font, so they can both be imported in your program. Here's a direct link to the Writer readme: https://github.com/peterhinch/micropython-font-to-py/blob/master/writer/WRITER.md