lv_imgfont.h

API reference for lv_imgfont.h

Report on GitHub

Functions

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)
Parameters
NameTypeDescription
heightuint16_tfont size
path_cblv_imgfont_get_path_cb_ta function to get the image path name of character.
user_datavoid *pointer to user data

Returns: lv_font_t * — pointer to the new imgfont or NULL if create error.

lv_imgfont_destroy

Destroy a image font that has been created.

 
void lv_imgfont_destroy(lv_font_t *font)
Parameters
NameTypeDescription
fontlv_font_t *pointer to image font handle.

Typedefs

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 — param path_cb

Dependencies

How is this guide?

Last updated on

On this page