peterhinch / micropython-font-to-py

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

added invert color option #28

Closed dankrause closed 4 years ago

dankrause commented 4 years ago

You can now invert colors in your font by specifying the -t or --invert options in the command line. This will give you white text on a black background, for example.

peterhinch commented 4 years ago

Mapping from bitmap to color should take place at the rendering stage. The output of the utility is a single bit: it doesn't have a color. My GUI libraries render these fonts with foreground and background colors applied at that stage. Inversion is just a special case this process.

In my opinion this is not the way to go.