Skip to content

Commit

Permalink
lv_porting/gpu: fallback draw bitmap font to sw
Browse files Browse the repository at this point in the history
VELAPLATFO-10216

dependson: 3105556
Change-Id: I968879a355babe83336705016751e8f7d36b95a6
Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com>
  • Loading branch information
pengyiqiang committed Jul 7, 2023
1 parent 8fe6b57 commit b80b7a4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions graphics/lvgl/lv_porting/gpu/vglite/lv_gpu_draw_letter.c
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,11 @@ static lv_res_t draw_letter_normal(lv_draw_ctx_t* draw_ctx, const lv_draw_label_
vg_lite_outline_t* outline;
const lv_font_t* font_p = g->resolved_font;

/* not draw bitmap font */
if (!lv_freetype_is_outline_font(font_p)) {
return LV_RES_INV;
}

outline = (vg_lite_outline_t*)lv_freetype_outline_lookup((lv_font_t*)font_p, letter);

if (!outline) {
Expand Down

0 comments on commit b80b7a4

Please sign in to comment.