shorepine / tulipcc

The Tulip Creative Computer - a portable Python synthesizer for music and graphics
https://notes.variogram.com/2023/02/14/tulip/
Other
158 stars 17 forks source link

Smoother non-antialiased default font for LVGL #203

Open bwhitman opened 2 months ago

bwhitman commented 2 months ago

I am annoyed by the way the default LVGL fonts look on Tulip, since we're not using antialiasing.

We should convert our other bitmap proportional fonts back into LVGL. they look cleaner without AA.

Screenshot of the current fonts:

image
bwhitman commented 2 months ago

This is kind of a pain. I've tried

bwhitman commented 2 months ago

I eventually, and with much pain, built a U8G2 to LVGL converter. I'll share this with the LVGL community soon, i think it's helpful for lots of others. There's still some small bugs but it mostly works and we now have a pixel-perfect helvetica 12 font as our default font in Tulip.

image
bwhitman commented 2 months ago

Merged this. Going to call it done and log any issues we see with it!

bwhitman commented 1 month ago

Re-opening, too many bugs. Will merge in the glyph bug in here too. I'll work on this on a separate branch

bwhitman commented 1 month ago

Tulip font 11, which is U8G2 u8g2_font_crox1h_tr, is our current proportional small default pixel font. It (or others) cannot render -, *, or ' so far, which is odd. This is either a rendering bug (straight lines?) or something missing in the font.