peterhinch / micropython-font-to-py

A Python 3 utility to convert fonts to Python source capable of being frozen as bytecode
MIT License
385 stars 69 forks source link

Convert font_to_py output to font2bitmap #51

Closed saraverbeecke closed 11 months ago

saraverbeecke commented 11 months ago

Hi Peter, I stumbled on this website with nice bitmap fonts I'd like to use on a 240x320 display. These can be downloaded as .pcf files which I successfully could convert with your font_to_py tool. Now I wanted to test this on a st7789 driver written by [russhughes].(https://github.com/russhughes/st7789_mpy/blob/master/utils/font2bitmap.py) but it seems that I need to use the same kind of file structure as the output of a font2bitmap.py output. Any tips how I can generate the same kind of output file as the font2bitmap from the font_to_py output? Thanks!

peterhinch commented 11 months ago

I am puzzled that this question is directed to me rather than to Russ Hughes - after all it concerns his utility and his display driver. I am unfamiliar with these.

The font_to_py utilities are designed to be compatible with my family of display drivers as used on nano-gui and elsewhere. There is an st7789 driver in that library.

Sorry I can't be of much help here.