Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

s3 watch face broken. Need enable LV_USE_FONT_COMPRESSED. #225

Open
panlina opened this issue Feb 1, 2024 · 1 comment
Open

s3 watch face broken. Need enable LV_USE_FONT_COMPRESSED. #225

panlina opened this issue Feb 1, 2024 · 1 comment

Comments

@panlina
Copy link

panlina commented Feb 1, 2024

Previously characters in watch face don't show up in s3 branch, and a recent commit fixed it by changing to normal fonts.

Seems this is due to lvgl font format. Current font files are generated with --bpp 3 while lvgl doc states that it only support bpp 1, 2, 4 and 8. I tried regenerating one of the fonts with --bpp 2 and the digits show up.

We can update all the fonts if we want to make the current watch face work again.

@panlina
Copy link
Author

panlina commented Feb 1, 2024

No. I tried again with lv_font_conv offline tool and the characters disappeared again. The real cause is the compression option. My previous fonts are generated with online tool. The online tool and offline tool have different default setup regarding compression. The offline tool will compress the font by default if you don't specify --no-compression option. Current fonts in repo are all compressed. So to use these fonts we have to enable the LV_USE_FONT_COMPRESSED switch in lv_conf.h. No changes are needed in font files.

@panlina panlina changed the title s3 watch face broken. Fonts need regeneration. s3 watch face broken. Need enable LV_USE_FONT_COMPRESSED. Feb 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant