feat(tiny_ttf): add glyph caching (#3703)

Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
This commit is contained in:
honey the codewitch
2022-10-02 08:48:34 -07:00
committed by GitHub
parent d214b00386
commit ccb66ca701
7 changed files with 285 additions and 44 deletions

View File

@@ -12,6 +12,7 @@
png
gif
freetype
tiny_ttf
qrcode
rlottie
ffmpeg

View File

@@ -12,6 +12,7 @@ However, if `LV_TINY_TTF_FILE_SUPPORT` is enabled, `lv_tiny_ttf_create_file(path
After a font is created, you can change the size by using `lv_tiny_ttf_set_size(font, line_height)`.
By default, a font will use up to 4KB of cache to speed up rendering glyphs. This maximum can be changed by using `lv_tiny_ttf_create_data_ex(data, data_size, line_height, cache_size)` or `lv_tiny_ttf_create_file_ex(path, line_height, cache_size)` (when available). The cache size is indicated in bytes.
## Example
```eval_rst