lv_vg_lite_bitmap_font_cache.h¶
Functions
-
void lv_vg_lite_bitmap_font_cache_init(struct _lv_draw_vg_lite_unit_t *unit, uint32_t cache_cnt)¶
Initialize the bitmap font cache for VG-Lite draw unit.
- Parameters:
unit – pointer to the VG-Lite draw unit
cache_cnt – number of cache entries to allocate
-
void lv_vg_lite_bitmap_font_cache_deinit(struct _lv_draw_vg_lite_unit_t *unit)¶
Deinitialize the bitmap font cache for VG-Lite draw unit.
- Parameters:
unit – pointer to the VG-Lite draw unit
-
lv_draw_buf_t *lv_vg_lite_bitmap_font_cache_get(struct _lv_draw_vg_lite_unit_t *unit, const lv_font_glyph_dsc_t *g_dsc)¶
Get the bitmap font cache entry for a given font and letter.
- Parameters:
unit – pointer to the VG-Lite draw unit
g_dsc – pointer to the glyph descriptor
- Returns:
pointer to the draw buffer containing the cached bitmap font glyph, or NULL if the glyph ID is 0 or if cache creation fails