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:
VIFEX
2026-01-06 22:42:05 +08:00
committed by GitHub
parent 7bf13855e7
commit db3067789c
4 changed files with 1 additions and 1 deletions
+1 -1
View File
@@ -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