lv_binfont_loader.h¶
Functions
-
lv_font_t *lv_binfont_create(const char *path)¶
Loads a
lv_font_tobject from a binary font file- Parameters:
path – path to font file
- Returns:
pointer to font where to load
-
lv_font_t *lv_binfont_create_from_buffer(void *buffer, uint32_t size)¶
Loads a
lv_font_tobject from a memory buffer containing the binary font file. Requires LV_USE_FS_MEMFS- Parameters:
buffer – address of the font file in the memory
size – size of the font file buffer
- Returns:
pointer to font where to load
-
void lv_binfont_destroy(lv_font_t *font)¶
Frees the memory allocated by the
lv_binfont_create()function- Parameters:
font – lv_font_t object created by the lv_binfont_create function
Variables
-
const lv_font_class_t lv_binfont_font_class¶
-
struct lv_binfont_font_src_t¶