.get_glyph_dsc = lv_font_get_glyph_dsc_fmt_txt, /*Function pointer to get glyph's data*/ .get_glyph_bitmap = lv_font_get_bitmap_fmt_txt, /*Function pointer to get glyph's bitmap*/ .line_height = 18, /*The maximum line height required by the font*/ .base_line = 4, /*Ba...
dsc指向的结构体内的glyph_bitmap成员表示像素内容。这里字体最大是32*32,占用32*4个像素,因此glyph_bitmap是一个128大小的uint8数组。 其余成员的作用没有深究。 booljlx_font_get_glyph_dsc_fmt_txt(constlv_font_t* font,lv_font_glyph_dsc_t* dsc_out,uint32_tunicode_letter,uint32_tunicode_letter_...
回溯分析发现是 lv_draw_sw_letter() 内部通过 lv_font_get_glyph_dsc() 获取: C++ voidlv_draw_sw_letter(lv_draw_ctx_t* draw_ctx,constlv_draw_label_dsc_t* dsc,constlv_point_t* pos_p,uint32_tletter){lv_font_glyph_dsc_tg;boolg_ret =lv_font_get_glyph_dsc(dsc->font, &g, letter...
然后肯定先要查字体描述来或者字体信息(__user_font_get_glyph_dsc)再看字体表述代码 static bool _...
LV_IMG_DECLARE(img_lvgl_logo); //宏展开为:extern lv_img_dsc_t img_lvgl_logo; 声明外部...
if(xTaskGetSchedulerState()!=taskSCHEDULER_NOT_STARTED)//系统已经运行 { lv_tick_inc(1); /...
startswith('};'): blank_line_count = 0 font = False print('))') print() print(f'{font_name}.get_glyph_dsc = {font_name}.get_glyph_dsc_fmt_txt') print(f'{font_name}.get_glyph_bitmap = {font_name}.get_bitmap_fmt_txt') elif line.startswith('.') and not line.startswith...
if(event == LV_EVENT_VALUE_CHANGED){ Speed_Set = lv_slider_get_value(obj);sprintf(buf,"设定...
get_glyph_dsc = my_get_glyph_dsc_cb; /*Set a callback to get info about glyphs*/ my_font.get_glyph_bitmap = my_get_glyph_bitmap_cb; /*Set a callback to get bitmap of a glyph*/ my_font.line_height = height; /*The real line height where any text fits*/ my_font.base_...
.glyph_dsc = NULL, /*设置为空*/ .glyph_cnt = 0xffff, /*字库内字符个数 设置为65535*...