Lines Matching refs:font
9 provided font-management functions includes:
11 - Font resource reference counting (reduces repeated creation of font resources).
12 - Font resource concatenation (font fallback).
13 - Font resource recycling mechanism (buffers recently deleted font resources to
26 length of the font name.
31 Use :cpp:func:`lv_font_manager_create` to create a font manager, where the
32 :cpp:func:`recycle_cache_size` parameter is used to set the number of font recycling
33 caches, which can improve font creation efficiency.
35 Use :cpp:func:`lv_font_manager_add_path_static` to add a mapping between the font
36 file path and the custom font name, so that the application can access the font
41 Use :cpp:func:`lv_font_manager_remove_path` to remove the font path mapping.
49 /* Create font manager, with 8 fonts recycling buffers */
52 /* Add font path mapping to font manager */
60 Use :cpp:func:`lv_font_manager_create_font` to create a font. The parameters are
64 (separated by ``,``) to achieve font concatenation (when the corresponding glyph is
65 not found in a font file, it will automatically search from the next concatenated
66 font).
72 /* Create font from font manager */
79 /* Create label with the font */
87 Use :cpp:func:`lv_font_manager_delete_font` to delete the font when it is no longer needed.
88 The font manager will mark the font resource as a recyclable font so that it has the
91 Note that you need to delete any Widgets that used the font first, and then
92 delete the font to avoid accessing wild pointers.
96 /* Delete label and font */
104 Use :cpp:func:`lv_font_manager_delete` to destroy the entire font manager. It should
106 deleted all fonts using :cpp:func:`lv_font_manager_delete_font`. The font manager
108 being referenced, the font manager will fail to be destroyed and the function will return false.