lv_font_manager_recycle.h

Typedefs

typedef struct _lv_font_manager_recycle_t lv_font_manager_recycle_t

Functions

lv_font_manager_recycle_t *lv_font_manager_recycle_create(uint32_t max_size)

Create font recycle manager.

Parameters:

max_size – recycle size.

Returns:

pointer to font recycle manager.

void lv_font_manager_recycle_delete(lv_font_manager_recycle_t *manager)

Delete font recycle manager.

Parameters:

manager – pointer to font recycle manager.

lv_font_t *lv_font_manager_recycle_get_reuse(lv_font_manager_recycle_t *manager, const lv_freetype_info_t *ft_info)

Get a reusable font.

Parameters:
  • manager – pointer to font recycle manager.

  • ft_info – font info.

Returns:

returns true on success.

void lv_font_manager_recycle_set_reuse(lv_font_manager_recycle_t *manager, lv_font_t *font, const lv_freetype_info_t *ft_info)

Set fonts to be reused.

Parameters:
  • manager – pointer to font recycle manager.

  • ft_info – font info.