acid-drop- Hacking the planet from a LilyGo T-Deck using custom firmware |
git clone git://git.acid.vegas/acid-drop.git |
Log | Files | Refs | Archive | README | LICENSE |
imgfont.md (740B)
1 ```eval_rst 2 .. include:: /header.rst 3 :github_url: |github_link_base|/others/imgfont.md 4 ``` 5 ## Image font (imgfont) 6 Draw image in label or span obj with imgfont. 7 This is often used to display Unicode emoji icons in text. 8 Supported image formats: determined by LVGL image decoder. 9 10 ## Usage 11 Enable `LV_USE_IMGFONT` in `lv_conf.h`. 12 13 To create a new imgfont use `lv_imgfont_create(height, path_cb)`. 14 15 `height` used to indicate the size of a imgfont. 16 `path_cb` Used to get the image path of the specified unicode. 17 18 Use `lv_imgfont_destroy(imgfont)` to destroy a imgfont that is no longer used. 19 20 ## Example 21 ```eval_rst 22 .. include:: ../../examples/others/imgfont/index.rst 23 ``` 24 25 ## API 26 ```eval_rst 27 .. doxygenfile:: lv_imgfont.h 28 :project: lvgl 29 ```