Skip to content

Commit

Permalink
PicoVector: Fix fonts not rendering with no transform set.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gadgetoid committed Jan 16, 2025
1 parent 2818301 commit 97f5d87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/pico_vector/alright-fonts.h
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ 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_mat3_t final_transform = *old;
pp_mat3_t final_transform = old ? *old : pp_mat3_identity();
pp_mat3_mul(&final_transform, &caret_transform);
pp_transform(&final_transform);

Expand Down

0 comments on commit 97f5d87

Please sign in to comment.