mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-14 06:42:58 +08:00
font: ignore glyphs with NULL dsc
This commit is contained in:
parent
5321b9b62e
commit
b623eabb0a
@ -245,7 +245,7 @@ void lv_draw_letter(const lv_point_t * pos_p, const lv_area_t * mask_p, const lv
|
|||||||
}
|
}
|
||||||
|
|
||||||
const lv_font_glyph_dsc_t * g = lv_font_get_glyph_dsc(font_p, letter);
|
const lv_font_glyph_dsc_t * g = lv_font_get_glyph_dsc(font_p, letter);
|
||||||
|
if(g == NULL) return;
|
||||||
lv_coord_t pos_x = pos_p->x + g->ofs_x;
|
lv_coord_t pos_x = pos_p->x + g->ofs_x;
|
||||||
lv_coord_t pos_y = pos_p->y + g->ofs_y;
|
lv_coord_t pos_y = pos_p->y + g->ofs_y;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user