p8-firmware
p8-firmware copied to clipboard
Enhanced fonts - LVGL
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.
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.
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.
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.
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.