Home
last modified time | relevance | path

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

1234

/lvgl-3.6.0/src/extra/libs/tiny_ttf/
Dlv_tiny_ttf.h34 lv_font_t * lv_tiny_ttf_create_file(const char * path, lv_coord_t font_size);
37 lv_font_t * lv_tiny_ttf_create_file_ex(const char * path, lv_coord_t font_size, size_t cache_size);
41 lv_font_t * lv_tiny_ttf_create_data(const void * data, size_t data_size, lv_coord_t font_size);
44 lv_font_t * lv_tiny_ttf_create_data_ex(const void * data, size_t data_size, lv_coord_t font_size, s…
47 void lv_tiny_ttf_set_size(lv_font_t * font, lv_coord_t font_size);
50 void lv_tiny_ttf_destroy(lv_font_t * font);
Dlv_tiny_ttf.c85 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()
130 static const uint8_t * ttf_get_glyph_bitmap_cb(const lv_font_t * font, uint32_t unicode_letter) in ttf_get_glyph_bitmap_cb()
174 static lv_font_t * lv_tiny_ttf_create(const char * path, const void * data, size_t data_size, lv_co… in lv_tiny_ttf_create()
220 lv_font_t * out_font = (lv_font_t *)TTF_MALLOC(sizeof(lv_font_t)); in lv_tiny_ttf_create()
225 lv_memset(out_font, 0, sizeof(lv_font_t)); in lv_tiny_ttf_create()
238 lv_font_t * lv_tiny_ttf_create_file_ex(const char * path, lv_coord_t font_size, size_t cache_size) in lv_tiny_ttf_create_file_ex()
242 lv_font_t * lv_tiny_ttf_create_file(const char * path, lv_coord_t font_size) in lv_tiny_ttf_create_file()
247 lv_font_t * lv_tiny_ttf_create_data_ex(const void * data, size_t data_size, lv_coord_t font_size, s… in lv_tiny_ttf_create_data_ex()
251 lv_font_t * lv_tiny_ttf_create_data(const void * data, size_t data_size, lv_coord_t font_size) in lv_tiny_ttf_create_data()
255 void lv_tiny_ttf_set_size(lv_font_t * font, lv_coord_t font_size) in lv_tiny_ttf_set_size()
[all …]
/lvgl-3.6.0/src/extra/others/imgfont/
Dlv_imgfont.c22 lv_font_t * font;
30 static const uint8_t * imgfont_get_glyph_bitmap(const lv_font_t * font, uint32_t unicode);
31 static bool imgfont_get_glyph_dsc(const lv_font_t * font, lv_font_glyph_dsc_t * dsc_out,
49 lv_font_t * lv_imgfont_create(uint16_t height, lv_get_imgfont_path_cb_t path_cb) in lv_imgfont_create()
54 size_t size = sizeof(imgfont_dsc_t) + sizeof(lv_font_t); in lv_imgfont_create()
59 dsc->font = (lv_font_t *)(((char *)dsc) + sizeof(imgfont_dsc_t)); in lv_imgfont_create()
62 lv_font_t * font = dsc->font; in lv_imgfont_create()
75 void lv_imgfont_destroy(lv_font_t * font) in lv_imgfont_destroy()
89 static const uint8_t * imgfont_get_glyph_bitmap(const lv_font_t * font, uint32_t unicode) in imgfont_get_glyph_bitmap()
97 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.h29 typedef bool (*lv_get_imgfont_path_cb_t)(const lv_font_t * font, void * img_src,
42 lv_font_t * lv_imgfont_create(uint16_t height, lv_get_imgfont_path_cb_t path_cb);
48 void lv_imgfont_destroy(lv_font_t * font);
/lvgl-3.6.0/src/core/
Dlv_theme.h38 const lv_font_t * font_small;
39 const lv_font_t * font_normal;
40 const lv_font_t * font_large;
83 const lv_font_t * lv_theme_get_font_small(lv_obj_t * obj);
89 const lv_font_t * lv_theme_get_font_normal(lv_obj_t * obj);
96 const lv_font_t * lv_theme_get_font_large(lv_obj_t * obj);
Dlv_theme.c80 const lv_font_t * lv_theme_get_font_small(lv_obj_t * obj) in lv_theme_get_font_small()
86 const lv_font_t * lv_theme_get_font_normal(lv_obj_t * obj) in lv_theme_get_font_normal()
92 const lv_font_t * lv_theme_get_font_large(lv_obj_t * obj) in lv_theme_get_font_large()
/lvgl-3.6.0/src/font/
Dlv_font.h84 } lv_font_t; typedef
96 const uint8_t * lv_font_get_glyph_bitmap(const lv_font_t * font_p, uint32_t letter);
107 bool lv_font_get_glyph_dsc(const lv_font_t * font_p, lv_font_glyph_dsc_t * dsc_out, uint32_t letter,
117 uint16_t lv_font_get_glyph_width(const lv_font_t * font, uint32_t letter, uint32_t letter_next);
124 static inline lv_coord_t lv_font_get_line_height(const lv_font_t * font_p) in lv_font_get_line_height()
133 #define LV_FONT_DECLARE(font_name) extern const lv_font_t font_name;
252 static inline const lv_font_t * lv_font_default(void) in LV_FONT_DECLARE()
Dlv_font.c49 const uint8_t * lv_font_get_glyph_bitmap(const lv_font_t * font_p, uint32_t letter) in lv_font_get_glyph_bitmap()
64 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()
72 const lv_font_t * placeholder_font = NULL; in lv_font_get_glyph_dsc()
75 const lv_font_t * f = font_p; in lv_font_get_glyph_dsc()
136 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()
Dlv_font_loader.h29 lv_font_t * lv_font_load(const char * fontName);
30 void lv_font_free(lv_font_t * font);
Dlv_font_fmt_txt.h210 const uint8_t * lv_font_get_bitmap_fmt_txt(const lv_font_t * font, uint32_t letter);
220 bool lv_font_get_glyph_dsc_fmt_txt(const lv_font_t * font, lv_font_glyph_dsc_t * dsc_out, uint32_t …
Dlv_font_fmt_txt.c34 static uint32_t get_glyph_dsc_id(const lv_font_t * font, uint32_t letter);
35 static int8_t get_kern_value(const lv_font_t * font, uint32_t gid_left, uint32_t gid_right);
79 const uint8_t * lv_font_get_bitmap_fmt_txt(const lv_font_t * font, uint32_t unicode_letter) in lv_font_get_bitmap_fmt_txt()
148 bool lv_font_get_glyph_dsc_fmt_txt(const lv_font_t * font, lv_font_glyph_dsc_t * dsc_out, uint32_t … in lv_font_get_glyph_dsc_fmt_txt()
209 static uint32_t get_glyph_dsc_id(const lv_font_t * font, uint32_t letter) in get_glyph_dsc_id()
270 static int8_t get_kern_value(const lv_font_t * font, uint32_t gid_left, uint32_t gid_right) in get_kern_value()
Dlv_font_loader.c67 static bool lvgl_load_font(lv_fs_file_t * fp, lv_font_t * font);
86 lv_font_t * lv_font_load(const char * font_name) in lv_font_load()
93 lv_font_t * font = lv_mem_alloc(sizeof(lv_font_t)); in lv_font_load()
95 memset(font, 0, sizeof(lv_font_t)); in lv_font_load()
117 void lv_font_free(lv_font_t * font) in lv_font_free()
483 static bool lvgl_load_font(lv_fs_file_t * fp, lv_font_t * font) in lvgl_load_font()
/lvgl-3.6.0/tests/src/test_cases/
Dtest_font_loader.c27 static int compare_fonts(lv_font_t * f1, lv_font_t * f2);
42 extern lv_font_t font_1;
43 extern lv_font_t font_2;
44 extern lv_font_t font_3;
49 lv_font_t * font_1_bin = lv_font_load("A:src/test_fonts/font_1.fnt"); in test_font_loader()
50 lv_font_t * font_2_bin = lv_font_load("A:src/test_fonts/font_2.fnt"); in test_font_loader()
51 lv_font_t * font_3_bin = lv_font_load("A:src/test_fonts/font_3.fnt"); in test_font_loader()
75 static int compare_fonts(lv_font_t * f1, lv_font_t * f2) in compare_fonts()
Dtest_tiny_ttf.c22 lv_font_t * font = lv_tiny_ttf_create_data(ubuntu_font, ubuntu_font_size, 30); in test_tiny_ttf_rendering_test()
/lvgl-3.6.0/src/extra/libs/freetype/
Dlv_freetype.c43 lv_font_t * font;
55 static void lv_ft_font_destroy_cache(lv_font_t * font);
62 static void lv_ft_font_destroy_nocache(lv_font_t * font);
170 void lv_ft_font_destroy(lv_font_t * font) in lv_ft_font_destroy()
205 static bool get_bold_glyph(const lv_font_t * font, FT_Face face, in get_bold_glyph()
235 static bool get_glyph_dsc_cb_cache(const lv_font_t * font, in get_glyph_dsc_cb_cache()
333 static const uint8_t * get_glyph_bitmap_cb_cache(const lv_font_t * font, uint32_t unicode_letter) in get_glyph_bitmap_cb_cache()
355 size_t need_size = sizeof(lv_font_fmt_ft_dsc_t) + sizeof(lv_font_t); in lv_ft_font_init_cache()
360 dsc->font = (lv_font_t *)(((char *)dsc) + sizeof(lv_font_fmt_ft_dsc_t)); in lv_ft_font_init_cache()
380 lv_font_t * font = dsc->font; in lv_ft_font_init_cache()
[all …]
Dlv_freetype.h35 lv_font_t * font; /* point to lvgl font */
71 void lv_ft_font_destroy(lv_font_t * font);
/lvgl-3.6.0/demos/music/
Dlv_demo_music.c184 const lv_font_t * font_small = &lv_font_montserrat_22; in auto_step_cb()
185 const lv_font_t * font_large = &lv_font_montserrat_32; in auto_step_cb()
187 const lv_font_t * font_small = &lv_font_montserrat_12; in auto_step_cb()
188 const lv_font_t * font_large = &lv_font_montserrat_16; in auto_step_cb()
/lvgl-3.6.0/src/misc/
Dlv_txt.h83 void lv_txt_get_size(lv_point_t * size_res, const char * text, const lv_font_t * font, lv_coord_t l…
99 uint32_t _lv_txt_get_next_line(const char * txt, const lv_font_t * font, lv_coord_t letter_space,
112 lv_coord_t lv_txt_get_width(const char * txt, uint32_t length, const lv_font_t * font, lv_coord_t l…
/lvgl-3.6.0/examples/others/imgfont/
Dlv_example_imgfont_1.c8 static bool get_imgfont_path(const lv_font_t * font, void * img_src, in LV_IMG_DECLARE()
32 lv_font_t * imgfont = lv_imgfont_create(80, get_imgfont_path); in lv_example_imgfont_1()
/lvgl-3.6.0/src/draw/sdl/
Dlv_draw_sdl_label.c34 const lv_font_t * font_p;
42 static lv_font_glyph_key_t font_key_glyph_create(const lv_font_t * font_p, uint32_t letter);
61 const lv_font_t * font_p = dsc->font; in lv_draw_sdl_draw_letter()
178 static lv_font_glyph_key_t font_key_glyph_create(const lv_font_t * font_p, uint32_t letter) in font_key_glyph_create()
/lvgl-3.6.0/src/extra/themes/mono/
Dlv_theme_mono.h39 lv_theme_t * lv_theme_mono_init(lv_disp_t * disp, bool dark_bg, const lv_font_t * font);
/lvgl-3.6.0/src/extra/themes/default/
Dlv_theme_default.h40 const lv_font_t * font);
/lvgl-3.6.0/src/widgets/
Dlv_roller.c195 const lv_font_t * font = lv_obj_get_style_text_font(obj, LV_PART_MAIN); in lv_roller_set_visible_row_count()
495 const lv_font_t * normal_label_font = lv_obj_get_style_text_font(obj, LV_PART_MAIN); in draw_main()
577 const lv_font_t * font_main = lv_obj_get_style_text_font(obj, LV_PART_MAIN); in get_sel_area()
578 const lv_font_t * font_sel = lv_obj_get_style_text_font(obj, LV_PART_SELECTED); in get_sel_area()
618 const lv_font_t * font = lv_obj_get_style_text_font(obj, LV_PART_MAIN); in refr_position()
701 const lv_font_t * font = lv_obj_get_style_text_font(obj, LV_PART_MAIN); in release_handler()
743 const lv_font_t * font = lv_obj_get_style_text_font(obj, LV_PART_MAIN); in inf_normalize()
769 const lv_font_t * font = lv_obj_get_style_text_font(obj, LV_PART_SELECTED); in get_selected_label_width()
/lvgl-3.6.0/src/draw/
Dlv_draw_label.h31 const lv_font_t * font;
/lvgl-3.6.0/docs/overview/
Dfont.md4 A font is stored in a `lv_font_t` variable and can be set in a style's *text_font* field. For examp…
170 6. Declare the font using `extern lv_font_t my_font_name;` or simply use `LV_FONT_DECLARE(my_font_n…
187 lv_font_t * my_font;
204 To do this, a custom `lv_font_t` variable needs to be created:
207 lv_font_t my_font;
221 bool my_get_glyph_dsc_cb(const lv_font_t * font, lv_font_glyph_dsc_t * dsc_out, uint32_t unicode_le…
240 const uint8_t * my_get_glyph_bitmap_cb(const lv_font_t * font, uint32_t unicode_letter)
253 You can specify `fallback` in `lv_font_t` to provide fallback to the font. When the font
260 lv_font_t *roboto = my_font_load_function();
262 lv_font_t *droid_sans_fallback = my_font_load_function();

1234