1
0
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:
Gabor Kiss-Vamosi 2019-04-27 10:58:34 +02:00
parent 5321b9b62e
commit b623eabb0a

View File

@ -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);
if(g == NULL) return;
lv_coord_t pos_x = pos_p->x + g->ofs_x;
lv_coord_t pos_y = pos_p->y + g->ofs_y;