From 7367bcad3b2a72a70ae7d9c27f183c87f405bdc5 Mon Sep 17 00:00:00 2001 From: Mike Bell Date: Fri, 13 Dec 2024 18:21:25 +0000 Subject: [PATCH] PicoVector: Fully initialise text metrics. --- libraries/pico_vector/pico_vector.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libraries/pico_vector/pico_vector.hpp b/libraries/pico_vector/pico_vector.hpp index 3c5eb4913..20cc8765c 100644 --- a/libraries/pico_vector/pico_vector.hpp +++ b/libraries/pico_vector/pico_vector.hpp @@ -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();