lv_font_manager.h
Typedefs
-
typedef struct _lv_font_manager_t lv_font_manager_t
Functions
-
lv_font_manager_t *lv_font_manager_create(uint32_t recycle_cache_size)
Create main font manager.
- Parameters:
recycle_cache_size – number of fonts that were recently deleted from the cache.
- Returns:
pointer to main font manager.
-
bool lv_font_manager_delete(lv_font_manager_t *manager)
Delete main font manager.
- Parameters:
manager – pointer to main font manager.
- Returns:
return true if the deletion was successful.
-
void lv_font_manager_add_path(lv_font_manager_t *manager, const char *name, const char *path)
Add the font file path.
- Parameters:
manager – pointer to main font manager.
name – font name.
path – font file path.
-
void lv_font_manager_add_path_static(lv_font_manager_t *manager, const char *name, const char *path)
Add the font file path with static memory.
- Parameters:
manager – pointer to main font manager.
name – font name.
path – font file path.
-
bool lv_font_manager_remove_path(lv_font_manager_t *manager, const char *name)
Remove the font file path.
- Parameters:
manager – pointer to main font manager.
name – font name.
- Returns:
return true if the remove was successful.
-
lv_font_t *lv_font_manager_create_font(lv_font_manager_t *manager, const char *font_family, uint16_t render_mode, uint32_t size, uint16_t style)
Create font.
- Parameters:
manager – pointer to main font manager.
font_family – font family name.
render_mode – font render mode, see lv_freetype_font_render_mode_t.
size – font size.
style – font style, see lv_freetype_font_style_t.
- Returns:
point to the created font
-
void lv_font_manager_delete_font(lv_font_manager_t *manager, lv_font_t *font)
Delete font.
- Parameters:
manager – pointer to main font manager.
font – point to the font.
- Returns:
return true if the deletion was successful.