Skip to content

Commit

Permalink
PicoVector: Apply overall transform to text rendering.
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelBell committed Nov 17, 2024
1 parent 0425d77 commit a4adf0d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libraries/pico_vector/alright-fonts.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit a4adf0d

Please sign in to comment.