Skip to content

Commit

Permalink
Merge pull request #1036 from MichaelBell/fix-pv-font-init
Browse files Browse the repository at this point in the history
PicoVector: Fully initialise text metrics.
  • Loading branch information
Gadgetoid authored Dec 16, 2024
2 parents 301fb87 + 7367bca commit 54cc42f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libraries/pico_vector/pico_vector.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ namespace pimoroni {
text_metrics.letter_spacing = 95;
text_metrics.word_spacing = 200;
text_metrics.size = 48;
text_metrics.face = NULL;
text_metrics.transform = NULL;
// Should be set before rendering chars
//text_metrics.transform = (pp_mat3_t *)af_malloc(sizeof(pp_mat3_t));
//*text_metrics.transform = pp_mat3_identity();
Expand Down

0 comments on commit 54cc42f

Please sign in to comment.