From a4adf0d2182dff23a3d83baf470ced16f4cc993e Mon Sep 17 00:00:00 2001 From: Mike Bell Date: Sun, 17 Nov 2024 13:52:03 +0000 Subject: [PATCH] PicoVector: Apply overall transform to text rendering. --- libraries/pico_vector/alright-fonts.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libraries/pico_vector/alright-fonts.h b/libraries/pico_vector/alright-fonts.h index 20426a3a9..c88826f05 100644 --- a/libraries/pico_vector/alright-fonts.h +++ b/libraries/pico_vector/alright-fonts.h @@ -350,7 +350,9 @@ void af_render(af_face_t *face, const char *text, size_t tlen, float max_line_wi pp_mat3_translate(&caret_transform, (max_line_width - line_width), 0); } - pp_transform(&caret_transform); + pp_mat3_t final_transform = *old; + pp_mat3_mul(&final_transform, &caret_transform); + pp_transform(&final_transform); af_render_glyph(glyph, tm);