fix(draw_label): fix draw label missing format mapping (#5413)

This commit is contained in:
Benign X 2024-01-22 15:50:00 +08:00 committed by GitHub
parent 838cbd6ae6
commit 356f3ed018
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -423,6 +423,9 @@ static void draw_letter(lv_draw_unit_t * draw_unit, lv_draw_glyph_dsc_t * dsc,
else if(g.bpp == LV_IMGFONT_BPP) {
dsc->format = LV_DRAW_LETTER_BITMAP_FORMAT_IMAGE;
}
else if(g.bpp == LV_VECFONT_BPP) {
dsc->format = LV_DRAW_LETTER_VECTOR_FORMAT;
}
else {
dsc->format = LV_DRAW_LETTER_BITMAP_FORMAT_A8;
}