lv_binfont_loader.h

Functions

lv_font_t *lv_binfont_create(const char *path)

Loads a lv_font_t object from a binary font file

Parameters:

path – path to font file

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

LV_ATTRIBUTE_EXTERN_DATA const lv_font_class_t lv_binfont_font_class
struct lv_binfont_font_src_t

Public Members

uint32_t font_size

Size of the font in pixels

const char *path

Path to font file

const void *buffer

Address of the font file in the memory

uint32_t buffer_size

Size of the font file buffer