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.
- 参数:
recycle_cache_size -- number of fonts that were recently deleted from the cache.
- 返回:
pointer to main font manager.
-
bool lv_font_manager_delete(lv_font_manager_t *manager)
Delete main font manager.
- 参数:
manager -- pointer to main font manager.
- 返回:
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.
- 参数:
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.
- 参数:
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.
- 参数:
manager -- pointer to main font manager.
name -- font name.
- 返回:
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.
- 参数:
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.
- 返回:
point to the created font
-
void lv_font_manager_delete_font(lv_font_manager_t *manager, lv_font_t *font)
Delete font.
- 参数:
manager -- pointer to main font manager.
font -- point to the font.
- 返回:
return true if the deletion was successful.