lv_imgfont.h
API reference for lv_imgfont.h
Summary
Functions
font/imgfont/lv_imgfont.h:45function
lv_imgfont_create
Creates a image font with info parameter specified.
lv_font_t * lv_imgfont_create(uint16_t height, lv_imgfont_get_path_cb_t path_cb, void *user_data)| Name | Type | Description |
|---|---|---|
height | uint16_t | font size |
path_cb | lv_imgfont_get_path_cb_t | a function to get the image path name of character. |
user_data | void * | pointer to user data |
Returns: lv_font_t * — pointer to the new imgfont or NULL if create error.
font/imgfont/lv_imgfont.h:51function
lv_imgfont_destroy
Destroy a image font that has been created.
void lv_imgfont_destroy(lv_font_t *font)| Name | Type | Description |
|---|---|---|
font | lv_font_t * | pointer to image font handle. |
Typedefs
font/imgfont/lv_imgfont.h:30typedef
lv_imgfont_get_path_cb_t
typedef const void *(* lv_imgfont_get_path_cb_t) (const lv_font_t *font, uint32_t unicode, uint32_t unicode_next, int32_t *offset_y, void *user_data)Used by 1 function
lv_imgfont_create— parampath_cb
Dependencies
How is this guide?
Last updated on