Home
last modified time | relevance | path

Searched refs:lv_font_t (Results 1 – 25 of 153) sorted by relevance

1234567

/lvgl-latest/src/libs/tiny_ttf/
Dlv_tiny_ttf.h39 lv_font_t * lv_tiny_ttf_create_file(const char * path, int32_t font_size);
49 lv_font_t * lv_tiny_ttf_create_file_ex(const char * path, int32_t font_size, lv_font_kerning_t kern…
60 lv_font_t * lv_tiny_ttf_create_data(const void * data, size_t data_size, int32_t font_size);
71 lv_font_t * lv_tiny_ttf_create_data_ex(const void * data, size_t data_size, int32_t font_size,
80 void lv_tiny_ttf_set_size(lv_font_t * font, int32_t font_size);
86 void lv_tiny_ttf_destroy(lv_font_t * font);
Dlv_tiny_ttf.c88 static bool ttf_get_glyph_dsc_cb(const lv_font_t * font, lv_font_glyph_dsc_t * dsc_out, uint32_t un…
91 static void ttf_release_glyph_cb(const lv_font_t * font, lv_font_glyph_dsc_t * g_dsc);
92 static lv_font_t * lv_tiny_ttf_create(const char * path, const void * data, size_t data_size,
123 void lv_tiny_ttf_set_size(lv_font_t * font, int32_t font_size) in lv_tiny_ttf_set_size()
151 void lv_tiny_ttf_destroy(lv_font_t * font) in lv_tiny_ttf_destroy()
206 static bool ttf_get_glyph_dsc_cb(const lv_font_t * font, lv_font_glyph_dsc_t * dsc_out, uint32_t un… in ttf_get_glyph_dsc_cb()
293 const lv_font_t * font = g_dsc->resolved_font; in ttf_get_glyph_bitmap_cb()
321 static void ttf_release_glyph_cb(const lv_font_t * font, lv_font_glyph_dsc_t * g_dsc) in ttf_release_glyph_cb()
358 static lv_font_t * lv_tiny_ttf_create(const char * path, const void * data, size_t data_size, int32… in lv_tiny_ttf_create()
401 lv_font_t * out_font = lv_malloc_zeroed(sizeof(lv_font_t)); in lv_tiny_ttf_create()
[all …]
/lvgl-latest/src/font/
Dlv_font.c47 const lv_font_t * font_p = g_dsc->resolved_font; in lv_font_get_glyph_bitmap()
54 const lv_font_t * font = g_dsc->resolved_font; in lv_font_glyph_release_draw_data()
61 bool lv_font_get_glyph_dsc(const lv_font_t * font_p, lv_font_glyph_dsc_t * dsc_out, uint32_t letter, in lv_font_get_glyph_dsc()
69 const lv_font_t * placeholder_font = NULL; in lv_font_get_glyph_dsc()
72 const lv_font_t * f = font_p; in lv_font_get_glyph_dsc()
120 uint16_t lv_font_get_glyph_width(const lv_font_t * font, uint32_t letter, uint32_t letter_next) in lv_font_get_glyph_width()
132 void lv_font_set_kerning(lv_font_t * font, lv_font_kerning_t kerning) in lv_font_set_kerning()
138 int32_t lv_font_get_line_height(const lv_font_t * font) in lv_font_get_line_height()
143 const lv_font_t * lv_font_default(void) in lv_font_default()
Dlv_font.h62 const lv_font_t *
100 …bool (*get_glyph_dsc)(const lv_font_t *, lv_font_glyph_dsc_t *, uint32_t letter, uint32_t letter_n…
106 void (*release_glyph)(const lv_font_t *, lv_font_glyph_dsc_t *);
118 const lv_font_t * fallback; /**< Fallback font for missing glyph. Resolved recursively */
144 bool lv_font_get_glyph_dsc(const lv_font_t * font, lv_font_glyph_dsc_t * dsc_out, uint32_t letter,
161 uint16_t lv_font_get_glyph_width(const lv_font_t * font, uint32_t letter, uint32_t letter_next);
168 int32_t lv_font_get_line_height(const lv_font_t * font);
175 void lv_font_set_kerning(lv_font_t * font, lv_font_kerning_t kerning);
181 #define LV_FONT_DECLARE(font_name) LV_ATTRIBUTE_EXTERN_DATA extern const lv_font_t font_name;
300 const lv_font_t * lv_font_default(void);
Dlv_binfont_loader.h34 lv_font_t * lv_binfont_create(const char * path);
44 lv_font_t * lv_binfont_create_from_buffer(void * buffer, uint32_t size);
51 void lv_binfont_destroy(lv_font_t * font);
/lvgl-latest/src/others/font_manager/
Dlv_font_manager.c39 lv_font_t * font_p; /* lv_freetype gen font */
47 lv_font_t font; /* lvgl font info */
64 static lv_font_rec_node_t * lv_font_manager_search_rec_node(lv_font_manager_t * manager, lv_font_t
70 static lv_font_t * lv_font_manager_create_font_single(lv_font_manager_t * manager, const lv_freetyp…
71 static bool lv_font_manager_delete_font_single(lv_font_manager_t * manager, lv_font_t * font);
73 static lv_font_t * lv_font_manager_create_font_family(lv_font_manager_t * manager, const lv_freetyp…
74 static void lv_font_manager_delete_font_family(lv_font_manager_t * manager, lv_font_t * font);
179 lv_font_t * lv_font_manager_create_font(lv_font_manager_t * manager, const char * font_family, uint… in lv_font_manager_create_font()
193 lv_font_t * ret_font; in lv_font_manager_create_font()
203 lv_font_t * cur_font = ret_font; in lv_font_manager_create_font()
[all …]
Dlv_font_manager_recycle.h58 lv_font_t * lv_font_manager_recycle_get_reuse(lv_font_manager_recycle_t * manager, const lv_freetyp…
65 void lv_font_manager_recycle_set_reuse(lv_font_manager_recycle_t * manager, lv_font_t * font,
Dlv_font_manager_recycle.c32 lv_font_t * font;
90 lv_font_t * lv_font_manager_recycle_get_reuse(lv_font_manager_recycle_t * manager, const lv_freetyp… in lv_font_manager_recycle_get_reuse()
103 lv_font_t * font = recycle->font; in lv_font_manager_recycle_get_reuse()
118 void lv_font_manager_recycle_set_reuse(lv_font_manager_recycle_t * manager, lv_font_t * font, in lv_font_manager_recycle_set_reuse()
Dlv_font_manager.h85 lv_font_t * lv_font_manager_create_font(lv_font_manager_t * manager, const char * font_family, uint…
94 void lv_font_manager_delete_font(lv_font_manager_t * manager, lv_font_t * font);
/lvgl-latest/tests/src/test_cases/
Dtest_font_loader.c27 static int compare_fonts(lv_font_t * f1, lv_font_t * f2);
45 extern lv_font_t test_font_1;
46 extern lv_font_t test_font_2;
47 extern lv_font_t test_font_3;
54 static lv_font_t * font_1_bin = NULL;
55 static lv_font_t * font_2_bin = NULL;
56 static lv_font_t * font_3_bin = NULL;
156 lv_font_t style_font; in test_font_loader_reload()
157 lv_font_t * font; in test_font_loader_reload()
160 lv_memcpy(&style_font, font, sizeof(lv_font_t)); in test_font_loader_reload()
[all …]
/lvgl-latest/src/others/imgfont/
Dlv_imgfont.c21 lv_font_t font;
30 static bool imgfont_get_glyph_dsc(const lv_font_t * font, lv_font_glyph_dsc_t * dsc_out,
48 lv_font_t * lv_imgfont_create(uint16_t height, lv_imgfont_get_path_cb_t path_cb, void * user_data) in lv_imgfont_create()
57 lv_font_t * font = &dsc->font; in lv_imgfont_create()
70 void lv_imgfont_destroy(lv_font_t * font) in lv_imgfont_destroy()
90 static bool imgfont_get_glyph_dsc(const lv_font_t * font, lv_font_glyph_dsc_t * dsc_out, in imgfont_get_glyph_dsc()
Dlv_imgfont.h30 typedef const void * (*lv_imgfont_get_path_cb_t)(const lv_font_t * font,
45 lv_font_t * lv_imgfont_create(uint16_t height, lv_imgfont_get_path_cb_t path_cb, void * user_data);
51 void lv_imgfont_destroy(lv_font_t * font);
/lvgl-latest/src/libs/freetype/
Dlv_freetype.h84 lv_font_t * lv_freetype_font_create(const char * pathname, lv_freetype_font_render_mode_t render_mo…
91 void lv_freetype_font_delete(lv_font_t * font);
108 uint32_t lv_freetype_outline_get_scale(const lv_font_t * font);
116 bool lv_freetype_is_outline_font(const lv_font_t * font);
/lvgl-latest/src/themes/
Dlv_theme_private.h34 const lv_font_t * font_small;
35 const lv_font_t * font_normal;
36 const lv_font_t * font_large;
Dlv_theme.h67 const lv_font_t * lv_theme_get_font_small(lv_obj_t * obj);
73 const lv_font_t * lv_theme_get_font_normal(lv_obj_t * obj);
80 const lv_font_t * lv_theme_get_font_large(lv_obj_t * obj);
Dlv_theme.c66 const lv_font_t * lv_theme_get_font_small(lv_obj_t * obj) in lv_theme_get_font_small()
72 const lv_font_t * lv_theme_get_font_normal(lv_obj_t * obj) in lv_theme_get_font_normal()
78 const lv_font_t * lv_theme_get_font_large(lv_obj_t * obj) in lv_theme_get_font_large()
/lvgl-latest/tests/src/test_cases/libs/
Dtest_font_stress.c34 typedef lv_font_t * (*font_create_cb_t)(struct _font_stress_ctx_t * ctx,
40 typedef void (*font_delete_cb_t)(struct _font_stress_ctx_t * ctx, lv_font_t * font);
97lv_font_t * font = ctx->font_create_cb(ctx, font_name, LV_FREETYPE_FONT_RENDER_MODE_BITMAP, size, … in font_stress_label_create()
119 const lv_font_t * font = lv_obj_get_style_text_font(label, 0); in font_stress_label_delete()
122 ctx->font_delete_cb(ctx, (lv_font_t *)font); in font_stress_label_delete()
163 static lv_font_t * freetype_font_create_cb(font_stress_ctx_t * ctx, in freetype_font_create_cb()
173 static void freetype_font_delete_cb(font_stress_ctx_t * ctx, lv_font_t * font) in freetype_font_delete_cb()
179 static lv_font_t * font_manager_font_create_cb(font_stress_ctx_t * ctx, in font_manager_font_create_cb()
189 static void font_manager_font_delete_cb(font_stress_ctx_t * ctx, lv_font_t * font) in font_manager_font_delete_cb()
Dtest_tiny_ttf.c23 lv_font_t * font = lv_tiny_ttf_create_data(test_ubuntu_font, test_ubuntu_font_size, 30); in test_tiny_ttf_rendering_test()
57lv_font_t * font_normal = lv_tiny_ttf_create_data(test_kern_one_otf, test_kern_one_otf_size, 80); in test_tiny_ttf_kerning()
58 lv_font_t * font_none = lv_tiny_ttf_create_data(test_kern_one_otf, test_kern_one_otf_size, 80); in test_tiny_ttf_kerning()
/lvgl-latest/src/misc/
Dlv_text.h85 void lv_text_get_size(lv_point_t * size_res, const char * text, const lv_font_t * font, int32_t let…
97 int32_t lv_text_get_width(const char * txt, uint32_t length, const lv_font_t * font, int32_t letter…
109 int32_t lv_text_get_width_with_flags(const char * txt, uint32_t length, const lv_font_t * font, int…
/lvgl-latest/examples/libs/tiny_ttf/
Dlv_example_tiny_ttf_3.c21 lv_font_t * font = lv_tiny_ttf_create_data(ubuntu_font, ubuntu_font_size, 25); in lv_example_tiny_ttf_3()
50 lv_font_t * font = (lv_font_t *) v.ptr; in font_size_observer_cb()
/lvgl-latest/src/others/xml/
Dlv_xml.h38 lv_result_t lv_xml_register_font(const char * name, const lv_font_t * font);
40 const lv_font_t * lv_xml_get_font(const char * name);
/lvgl-latest/demos/music/
Dlv_demo_music.c164 const lv_font_t * font_small = &lv_font_montserrat_22; in auto_step_cb()
165 const lv_font_t * font_large = &lv_font_montserrat_32; in auto_step_cb()
167 const lv_font_t * font_small = &lv_font_montserrat_12; in auto_step_cb()
168 const lv_font_t * font_large = &lv_font_montserrat_16; in auto_step_cb()
/lvgl-latest/src/draw/
Dlv_draw_label.h37 const lv_font_t * font;
70 const lv_font_t * font;
182 const lv_font_t * font, uint32_t letter, lv_draw_glyph_cb_t cb);
/lvgl-latest/examples/libs/freetype/
Dlv_example_freetype_2.c17lv_font_t * font = lv_freetype_font_create(PATH_PREFIX "lvgl/examples/libs/freetype/Lato-Regular.t… in lv_example_freetype_2()
25lv_font_t * font_emoji = lv_freetype_font_create(PATH_PREFIX "lvgl/examples/libs/freetype/NotoColo… in lv_example_freetype_2()
/lvgl-latest/tests/src/test_cases/widgets/
Dtest_imgfont.c19 static const void * get_imgfont_path(const lv_font_t * font, uint32_t unicode, uint32_t unicode_nex… in get_imgfont_path()
41 lv_font_t * imgfont = lv_imgfont_create(80, get_imgfont_path, NULL); in test_imgfont_creation()

1234567