vindar / ILI9341_T4

Optimized ILI9341 screen driver library for Teensy 4/4.1, with vsync and diff. updates.
GNU Lesser General Public License v2.1
70 stars 12 forks source link

Docs for 4bpp v2.3 font converter #17

Closed sndsgd closed 2 months ago

sndsgd commented 6 months ago

I noticed this when trying to use a custom font rendered with bdf_to_ili9341 from the ILI9341_t3 repo: https://github.com/vindar/ILI9341_T4/blob/d9bea487d0fa38fc52ffb2bf9e8efc7b827a1cbc/src/ILI9341Driver.cpp#L2145

Can you please add some documentation regarding how you created the font you've included in this library? https://github.com/vindar/ILI9341_T4/blob/d9bea487d0fa38fc52ffb2bf9e8efc7b827a1cbc/src/font_ILI9341_T4.cpp#L513-L531

My google-fu led me to https://github.com/lvgl/lv_font_conv, but it looks like i'd need to rejigger the output to create ILI9341_t3_font_t compatbile code. If there is a tool out there that already does this, I'd much rather use it than re-create it!

sndsgd commented 2 months ago

looks like this is what I was looking for.

vindar commented 2 months ago

Hi, sorry for the late reply. Yes, https://github.com/projectitis/packedbdf is the creator of the font converter but beware there is a bug in the script when converting fonts with more than 2 bits resolutions.

You may also use my font converter which is based on projectitis (but hopefully without the bug).