/lvgl-latest/src/extra/others/imgfont/ |
D | lv_imgfont.c | 22 lv_font_t * font; member 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, 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() local 63 font->dsc = dsc; in lv_imgfont_create() 64 font->get_glyph_dsc = imgfont_get_glyph_dsc; in lv_imgfont_create() 65 font->get_glyph_bitmap = imgfont_get_glyph_bitmap; in lv_imgfont_create() 66 font->subpx = LV_FONT_SUBPX_NONE; in lv_imgfont_create() 67 font->line_height = height; in lv_imgfont_create() [all …]
|
D | lv_imgfont.h | 29 typedef bool (*lv_get_imgfont_path_cb_t)(const lv_font_t * font, void * img_src, 48 void lv_imgfont_destroy(lv_font_t * font);
|
/lvgl-latest/src/extra/libs/freetype/ |
D | lv_freetype.c | 43 lv_font_t * font; member 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() argument 173 lv_ft_font_destroy_cache(font); in lv_ft_font_destroy() 175 lv_ft_font_destroy_nocache(font); in lv_ft_font_destroy() 205 static bool get_bold_glyph(const lv_font_t * font, FT_Face face, in get_bold_glyph() argument 212 lv_font_fmt_ft_dsc_t * dsc = (lv_font_fmt_ft_dsc_t *)(font->dsc); in get_bold_glyph() 235 static bool get_glyph_dsc_cb_cache(const lv_font_t * font, in get_glyph_dsc_cb_cache() argument 249 lv_font_fmt_ft_dsc_t * dsc = (lv_font_fmt_ft_dsc_t *)(font->dsc); in get_glyph_dsc_cb_cache() [all …]
|
D | lv_freetype.h | 35 lv_font_t * font; /* point to lvgl font */ member 71 void lv_ft_font_destroy(lv_font_t * font);
|
/lvgl-latest/docs/overview/ |
D | font.md | 4 A font is stored in a `lv_font_t` variable and can be set in a style's *text_font* field. For examp… 6 lv_style_set_text_font(&my_style, &lv_font_montserrat_28); /*Set a larger font*/ 9 …xel)** property. It shows how many bits are used to describe a pixel in a font. The value stored f… 12 …rty also affects the amount of memory needed to store a font. For example, *bpp = 4* makes a font … 32 - `LV_FONT_MONTSERRAT_12` 12 px font 33 - `LV_FONT_MONTSERRAT_14` 14 px font 34 - `LV_FONT_MONTSERRAT_16` 16 px font 35 - `LV_FONT_MONTSERRAT_18` 18 px font 36 - `LV_FONT_MONTSERRAT_20` 20 px font 37 - `LV_FONT_MONTSERRAT_22` 22 px font [all …]
|
/lvgl-latest/docs/libs/ |
D | tiny_ttf.md | 1 # Tiny TTF font engine 9 create a TTF font instance at the specified font size. You can then 10 use that font anywhere `lv_font_t` is accepted. 18 entire time the font is being used, and streaming on demand may be 21 After a font is created, you can change the font size in pixels by using 22 `lv_tiny_ttf_set_size(font, font_size)`. 24 By default, a font will use up to 4KB of cache to speed up rendering
|
D | freetype.md | 3 Interface to [FreeType](https://www.freetype.org/) to generate font bitmaps run time. 18 1. `LV_FREETYPE_CACHE_SIZE`:maximum memory(bytes) used to cache font bitmap, outline, character map… 22 When you are sure that all the used font sizes will not be greater than 256, you can enable `LV_FRE… 24 …he same time, the `font` member of `lv_ft_info_t` will be filled with a pointer to an LVGL font, a… 34 You can simply pass the path to the font as usual on your operating system or platform. 44 - LVGL's [font interface](https://docs.lvgl.io/v7/en/html/overview/font.html#add-a-new-font-engine)
|
/lvgl-latest/src/draw/ |
D | lv_draw_label.c | 60 dsc->font = LV_FONT_DEFAULT; in lv_draw_label_dsc_init() 81 if(dsc->font == NULL) { in lv_draw_label() 93 const lv_font_t * font = dsc->font; in lv_draw_label() local 116 lv_txt_get_size(&p, txt, dsc->font, dsc->letter_space, dsc->line_space, LV_COORD_MAX, in lv_draw_label() 121 int32_t line_height_font = lv_font_get_line_height(font); in lv_draw_label() 154 …uint32_t line_end = line_start + _lv_txt_get_next_line(&txt[line_start], font, dsc->letter_space, … in lv_draw_label() 160 … line_end += _lv_txt_get_next_line(&txt[line_start], font, dsc->letter_space, w, NULL, dsc->flag); in lv_draw_label() 175 …line_width = lv_txt_get_width(&txt[line_start], line_end - line_start, font, dsc->letter_space, ds… in lv_draw_label() 182 …line_width = lv_txt_get_width(&txt[line_start], line_end - line_start, font, dsc->letter_space, ds… in lv_draw_label() 197 line_dsc.width = font->underline_thickness ? font->underline_thickness : 1; in lv_draw_label() [all …]
|
/lvgl-latest/src/extra/libs/tiny_ttf/ |
D | lv_tiny_ttf.c | 85 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() argument 100 ttf_font_desc_t * dsc = (ttf_font_desc_t *)font->dsc; 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() argument 132 ttf_font_desc_t * dsc = (ttf_font_desc_t *)font->dsc; in ttf_get_glyph_bitmap_cb() 149 cache_key.line_height = font->line_height; in ttf_get_glyph_bitmap_cb() 255 void lv_tiny_ttf_set_size(lv_font_t * font, lv_coord_t font_size) in lv_tiny_ttf_set_size() argument 261 ttf_font_desc_t * dsc = (ttf_font_desc_t *)font->dsc; in lv_tiny_ttf_set_size() 265 font->line_height = (lv_coord_t)(dsc->scale * (dsc->ascent - dsc->descent + line_gap)); in lv_tiny_ttf_set_size() 266 font->base_line = (lv_coord_t)(dsc->scale * (line_gap - dsc->descent)); in lv_tiny_ttf_set_size() 268 void lv_tiny_ttf_destroy(lv_font_t * font) in lv_tiny_ttf_destroy() argument [all …]
|
D | lv_tiny_ttf.h | 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);
|
/lvgl-latest/src/font/ |
D | lv_font_loader.c | 67 static bool lvgl_load_font(lv_fs_file_t * fp, lv_font_t * font); 93 lv_font_t * font = lv_mem_alloc(sizeof(lv_font_t)); in lv_font_load() local 94 if(font) { in lv_font_load() 95 memset(font, 0, sizeof(lv_font_t)); in lv_font_load() 96 if(!lvgl_load_font(&file, font)) { in lv_font_load() 103 lv_font_free(font); in lv_font_load() 104 font = NULL; in lv_font_load() 110 return font; in lv_font_load() 117 void lv_font_free(lv_font_t * font) in lv_font_free() argument 119 if(NULL != font) { in lv_font_free() [all …]
|
D | lv_font_fmt_txt.c | 34 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() argument 83 lv_font_fmt_txt_dsc_t * fdsc = (lv_font_fmt_txt_dsc_t *)font->dsc; in lv_font_get_bitmap_fmt_txt() 84 uint32_t gid = get_glyph_dsc_id(font, 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() argument 156 lv_font_fmt_txt_dsc_t * fdsc = (lv_font_fmt_txt_dsc_t *)font->dsc; in lv_font_get_glyph_dsc_fmt_txt() 157 uint32_t gid = get_glyph_dsc_id(font, unicode_letter); in lv_font_get_glyph_dsc_fmt_txt() 162 uint32_t gid_next = get_glyph_dsc_id(font, unicode_letter_next); in lv_font_get_glyph_dsc_fmt_txt() 164 kvalue = get_kern_value(font, gid, gid_next); in lv_font_get_glyph_dsc_fmt_txt() [all …]
|
D | lv_font.c | 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() argument 138 LV_ASSERT_NULL(font); in lv_font_get_glyph_width() 140 lv_font_get_glyph_dsc(font, &g, letter, letter_next); in lv_font_get_glyph_width()
|
D | lv_font.mk | 33 DEPPATH += --dep-path $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/font 34 VPATH += :$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/font
|
D | lv_font_fmt_txt.h | 210 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 …
|
/lvgl-latest/tests/src/test_cases/ |
D | test_tiny_ttf.c | 22 lv_font_t * font = lv_tiny_ttf_create_data(ubuntu_font, ubuntu_font_size, 30); in test_tiny_ttf_rendering_test() local 27 lv_style_set_text_font(&style, font); in test_tiny_ttf_rendering_test() 43 lv_tiny_ttf_destroy(font); in test_tiny_ttf_rendering_test()
|
/lvgl-latest/src/widgets/ |
D | lv_label.c | 317 const lv_font_t * font = lv_obj_get_style_text_font(obj, LV_PART_MAIN); in lv_label_get_letter_pos() local 320 lv_coord_t letter_height = lv_font_get_line_height(font); in lv_label_get_letter_pos() 332 … new_line_start += _lv_txt_get_next_line(&txt[line_start], font, letter_space, max_w, NULL, flag); in lv_label_get_letter_pos() 377 lv_coord_t x = lv_txt_get_width(bidi_txt, visual_byte_pos, font, letter_space, flag); in lv_label_get_letter_pos() 382 line_w = lv_txt_get_width(bidi_txt, new_line_start - line_start, font, letter_space, flag); in lv_label_get_letter_pos() 388 line_w = lv_txt_get_width(bidi_txt, new_line_start - line_start, font, letter_space, flag); in lv_label_get_letter_pos() 416 const lv_font_t * font = lv_obj_get_style_text_font(obj, LV_PART_MAIN); in lv_label_get_letter_on() local 419 lv_coord_t letter_height = lv_font_get_line_height(font); in lv_label_get_letter_on() 433 … new_line_start += _lv_txt_get_next_line(&txt[line_start], font, letter_space, max_w, NULL, flag); in lv_label_get_letter_on() 462 line_w = lv_txt_get_width(bidi_txt, new_line_start - line_start, font, letter_space, flag); in lv_label_get_letter_on() [all …]
|
D | lv_checkbox.c | 165 const lv_font_t * font = lv_obj_get_style_text_font(obj, LV_PART_MAIN); in lv_checkbox_event() local 166 lv_coord_t font_h = lv_font_get_line_height(font); in lv_checkbox_event() 171 …lv_txt_get_size(&txt_size, cb->txt, font, letter_space, line_space, LV_COORD_MAX, LV_TEXT_FLAG_NON… in lv_checkbox_event() 201 const lv_font_t * font = lv_obj_get_style_text_font(obj, LV_PART_MAIN); in lv_checkbox_draw() local 202 lv_coord_t font_h = lv_font_get_line_height(font); in lv_checkbox_draw() 249 …lv_txt_get_size(&txt_size, cb->txt, font, letter_space, line_space, LV_COORD_MAX, LV_TEXT_FLAG_NON… in lv_checkbox_draw()
|
D | lv_roller.c | 195 const lv_font_t * font = lv_obj_get_style_text_font(obj, LV_PART_MAIN); in lv_roller_set_visible_row_count() local 198 … lv_obj_set_height(obj, (lv_font_get_line_height(font) + line_space) * row_cnt + 2 * border_width); in lv_roller_set_visible_row_count() 480 …lv_txt_get_size(&res_p, lv_label_get_text(label), label_dsc.font, label_dsc.letter_space, label_ds… in draw_main() 492 lv_coord_t corr = (label_dsc.font->line_height - normal_label_font->line_height) / 2; in draw_main() 614 const lv_font_t * font = lv_obj_get_style_text_font(obj, LV_PART_MAIN); in refr_position() local 616 lv_coord_t font_h = lv_font_get_line_height(font); in refr_position() 697 const lv_font_t * font = lv_obj_get_style_text_font(obj, LV_PART_MAIN); in release_handler() local 699 lv_coord_t font_h = lv_font_get_line_height(font); in release_handler() 739 const lv_font_t * font = lv_obj_get_style_text_font(obj, LV_PART_MAIN); in inf_normalize() local 741 lv_coord_t font_h = lv_font_get_line_height(font); in inf_normalize() [all …]
|
/lvgl-latest/docs/_static/css/ |
D | custom.css | 29 font-weight: bold; 33 font-family: FontAwesome, "Lato","proxima-nova","Helvetica Neue",Arial,sans-serif; 36 font-size: 1.1em; 45 font-size: 1.1em; 123 font-family: FontAwesome, "Lato","proxima-nova","Helvetica Neue",Arial,sans-serif; 125 font-size: 1.1em;
|
/lvgl-latest/src/extra/widgets/span/ |
D | lv_span.c | 26 const lv_font_t * font; member 56 static bool lv_txt_get_snippet(const char * txt, const lv_font_t * font, lv_coord_t letter_space, 349 const lv_font_t * font = lv_span_get_style_text_font(obj, cur_span); in lv_spangroup_get_max_line_h() local 350 lv_coord_t line_h = lv_font_get_line_height(font); in lv_spangroup_get_max_line_h() 372 const lv_font_t * font = lv_span_get_style_text_font(obj, cur_span); in lv_spangroup_get_expand_width() local 383 uint16_t letter_w = lv_font_get_glyph_width(font, letter, letter_next); in lv_spangroup_get_expand_width() 441 snippet.font = lv_span_get_style_text_font(obj, cur_span); in lv_spangroup_get_expand_height() 443 snippet.line_h = lv_font_get_line_height(snippet.font) + line_space; in lv_spangroup_get_expand_height() 449 … bool isfill = lv_txt_get_snippet(&cur_txt[cur_txt_ofs], snippet.font, snippet.letter_space, in lv_spangroup_get_expand_height() 599 static bool lv_txt_get_snippet(const char * txt, const lv_font_t * font, in lv_txt_get_snippet() argument [all …]
|
/lvgl-latest/src/misc/ |
D | lv_txt.c | 91 void lv_txt_get_size(lv_point_t * size_res, const char * text, const lv_font_t * font, lv_coord_t l… in lv_txt_get_size() argument 98 if(font == NULL) return; in lv_txt_get_size() 104 uint16_t letter_height = lv_font_get_line_height(font); in lv_txt_get_size() 108 …new_line_start += _lv_txt_get_next_line(&text[line_start], font, letter_space, max_width, NULL, fl… in lv_txt_get_size() 120 …_line_length = lv_txt_get_width(&text[line_start], new_line_start - line_start, font, letter_space, in lv_txt_get_size() 171 static uint32_t lv_txt_get_next_word(const char * txt, const lv_font_t * font, in lv_txt_get_next_word() argument 176 if(font == NULL) return 0; in lv_txt_get_next_word() 207 letter_w = lv_font_get_glyph_width(font, letter, letter_next); in lv_txt_get_next_word() 279 uint32_t _lv_txt_get_next_line(const char * txt, const lv_font_t * font, in _lv_txt_get_next_line() argument 287 if(font == NULL) return 0; in _lv_txt_get_next_line() [all …]
|
D | lv_txt.h | 83 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-latest/examples/others/imgfont/ |
D | lv_example_imgfont_1.c | 8 static bool get_imgfont_path(const lv_font_t * font, void * img_src, in LV_IMG_DECLARE() 11 LV_UNUSED(font); in LV_IMG_DECLARE()
|
/lvgl-latest/src/extra/widgets/msgbox/ |
D | lv_msgbox.c | 102 const lv_font_t * font = lv_obj_get_style_text_font(mbox->close_btn, LV_PART_MAIN); in lv_msgbox_create() local 103 lv_coord_t close_btn_size = lv_font_get_line_height(font) + LV_DPX(10); in lv_msgbox_create() 131 const lv_font_t * font = lv_obj_get_style_text_font(mbox->btns, LV_PART_ITEMS); in lv_msgbox_create() local 132 lv_coord_t btn_h = lv_font_get_line_height(font) + LV_DPI_DEF / 10; in lv_msgbox_create()
|