1# Image font (imgfont)
2Draw image in label or span obj with imgfont.
3This is often used to display Unicode emoji icons in text.
4Supported image formats: determined by LVGL image decoder.
5
6## Usage
7Enable `LV_USE_IMGFONT` in `lv_conf.h`.
8
9To create a new imgfont use `lv_imgfont_create(height, path_cb)`.
10
11`height` used to indicate the size of a imgfont.
12`path_cb` Used to get the image path of the specified unicode.
13
14Use `lv_imgfont_destroy(imgfont)` to destroy a imgfont that is no longer used.
15
16## Example
17```eval_rst
18.. include:: ../../examples/others/imgfont/index.rst
19```
20
21## API
22```eval_rst
23.. doxygenfile:: lv_imgfont.h
24  :project: lvgl
25```
26