在这个函数里面会调用“lv_font_get_glyph_dsc”函数用以获取glyph descriptor(字符描述符),如果获取描述符失败,则会显示一个placeholder(占位符,是一个方框框,如下图),表示这个字符是字库里面没有的字符。
void * glyph_data; /*Depends on `format` field, it could be image source or draw buf of bitmap or vector data.*/ lv_draw_glyph_bitmap_format_t format; lv_font_glyph_format_t format; const lv_area_t * letter_coords; const lv_area_t * bg_coords; const lv_font_glyph_dsc_t *...
211constuint8_t *lv_font_get_bitmap_fmt_txt(constlv_font_t* font, uint32_t letter); 212 221boollv_font_get_glyph_dsc_fmt_txt(constlv_font_t* font,lv_font_glyph_dsc_t* dsc_out, uint32_t unicode_letter, uint32_t unicode_letter_next); ...
const lv_font_t * font = lv_obj_get_style_text_font(obj, LV_PART_MAIN); lv_font_glyph_dsc_t g; bool has_bullet; has_bullet = lv_font_get_glyph_dsc(font, &g, LV_TEXTAREA_PWD_BULLET_UNICODE, 0); const char * bullet; if(has_bullet) bullet = LV_SYMBOL_BULLET; ...
dsc_out->bpp = 8; /*Bit per pixel: 1/2/4/8*/ return true; } static const uint8_t * get_glyph_bitmap_cb_cache(const lv_font_t * font, uint32_t unicode_letter) { LV_UNUSED(font); LV_UNUSED(unicode_letter); return (const uint8_t *)sbit->buffer; } static ...
static const void * ttf_get_glyph_bitmap_cb(lv_font_glyph_dsc_t * g_dsc, uint32_t unicode_letter, lv_draw_buf_t * draw_buf); static void ttf_release_glyph_cb(const lv_font_t * font, lv_font_glyph_dsc_t * g_dsc); static lv_result_t lv_tiny_ttf_create(lv_font_t * out...
*The limit depends on the font size, font face and bpp. *Compiler error will be triggered if a font needs it.*/ #define LV_FONT_FMT_TXT_LARGE 0 /*Enables/disables support for compressed fonts.*/ #define LV_USE_FONT_COMPRESSED 0 /*Enable drawing placeholders when glyph dsc is ...
#if LV_USE_FONT_SUBPX /*Set the pixel order of the display. Physical order of RGB channels. Doesn't matter with "normal" fonts.*/ #define LV_FONT_SUBPX_BGR 0 /*0: RGB; 1:BGR order*/ #endif /*Enable drawing placeholders when glyph dsc is not found*/ #define LV_USE_FO...
0x400f42d8: lv_font_get_glyph_dsc_fmt_txt at C:\Users\Utilisateur\esp\esp-idf\lv_port_esp32_9\build/…/components/lvgl/src/font/lv_font_fmt_txt.c:150 A14 : 0x00001001 A15 : 0x00000000 SAR : 0x0000001d EXCCAUSE: 0x00000003 ...
lv_anim_set_playback_delay(&a, (((lv_font_get_glyph_width(font, ' ', ' ') + letter_space) * 1000) / ext->anim_speed) * LV_LABEL_WAIT_CHAR_COUNT); Expand Down Expand Up @@ -1291,7 +1291,7 @@ static void lv_label_refr_text(lv_obj_t * label) lv_anim_t a; lv_anim...