fix(tiny_ttf): fix no cache and formatting cleanup (#6568)

This commit is contained in:
Visa Harvey
2024-08-01 12:09:55 +03:00
committed by GitHub
parent 7791740de6
commit a623a5ca3d
3 changed files with 62 additions and 21 deletions

View File

@@ -687,6 +687,11 @@
#if LV_USE_TINY_TTF
/* Enable loading TTF data from files */
#define LV_TINY_TTF_FILE_SUPPORT 0
/*Cache count of the glyphs in Tiny TTF. It means the number of glyphs that can be cached.
*The higher the value, the more memory will be used
*Minor performance benefit should be evident with cnt > 3
*For best performance count should be greater than count of glyphs in use */
#define LV_TINY_TTF_CACHE_GLYPH_CNT 256
#endif
/*Rlottie library*/