0x416c6578 / p8-firmware

A firmware for the P8 smartwatch based off of the code from ATC1441
17 stars 3 forks source link

Enhanced fonts - LVGL #2

Open jmjatlanta opened 3 years ago

jmjatlanta commented 3 years ago

LVGL fonts are mentioned in the README as a TODO. Has there been progress?

I would like (probably need) this for my project, and would be willing to take a stab at it, but I don't want to re-do something someone else has already done.

0x416c6578 commented 3 years ago

Hi, Since I'm back at university I don't have much time to work on this project currently, however I did some work into writing a basic font renderer for the command line here. This explains how LVGL fonts work, so implementing a renderer wouldn't be too difficult, however its not something I will be doing soon. It may be that I made a mistake regarding the bounding box offsets, and I still don't fully understnad how they work, so its probably worth doing some looking into the LVGL source to properly figure out how that stuff works.

jmjatlanta commented 3 years ago

Thanks for that. Question: Did you consider the FreeType renderer? If so, was there a reason you didn't use it?

I understand that getting this far was a learning exercise for you. I'm somewhat in the same boat. I'm just not wanting to walk down a dead-end.

0x416c6578 commented 3 years ago

I must admit this is the first time I've heard of the FreeType renderer. It definitely seems like it would work in the context of this project, however I'm wary of the 512KB flash and 64KB ROM I have (although there is a 2mb flash onboard the P8). In terms of limitations it looks like a pretty good library unless you are working with a very low powered device. Maybe in the future I might try using it.

jmjatlanta commented 3 years ago

Looking at this some more, LVGL may bring more to the table (useful graphic widgets?) than just the fonts that FreeType would bring. I'm still looking into it. Thanks again for the info.