mirror of
https://github.com/lvgl/lvgl.git
synced 2026-05-24 00:07:03 +08:00
fix(vg_lite): fix the missing handling of rotated vector fonts g->ofs_x (#9519)
Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com>
This commit is contained in:
@@ -469,7 +469,7 @@ static void draw_letter_outline(lv_draw_task_t * t, const lv_draw_glyph_dsc_t *
|
||||
*/
|
||||
vg_lite_matrix_t internal_matrix;
|
||||
vg_lite_identity(&internal_matrix);
|
||||
const float pivot_x = dsc->pivot.x / scale;
|
||||
const float pivot_x = (dsc->pivot.x + dsc->g->ofs_x) / scale;
|
||||
const float pivot_y = dsc->g->box_h + dsc->g->ofs_y;
|
||||
vg_lite_translate(pivot_x, pivot_y, &internal_matrix);
|
||||
vg_lite_rotate(dsc->rotation / 10.0f, &internal_matrix);
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 5.4 KiB After Width: | Height: | Size: 5.6 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 5.2 KiB After Width: | Height: | Size: 5.2 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 5.7 KiB |
Reference in New Issue
Block a user