From ce6423e7888e0aa14f6c2d381cb4ab04c82f20c1 Mon Sep 17 00:00:00 2001 From: bt-tkarpinski Date: Thu, 29 Feb 2024 12:31:27 +0100 Subject: [PATCH] Add option to get charBounds of UTF-8 glyphs --- Adafruit_GFX.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Adafruit_GFX.cpp b/Adafruit_GFX.cpp index 6218d999..6cbc47e9 100644 --- a/Adafruit_GFX.cpp +++ b/Adafruit_GFX.cpp @@ -62,7 +62,7 @@ POSSIBILITY OF SUCH DAMAGE. #define pgm_read_pointer(addr) ((void *)pgm_read_word(addr)) #endif -inline GFXglyph *pgm_read_glyph_ptr(const GFXfont *gfxFont, uint8_t c) { +inline GFXglyph *pgm_read_glyph_ptr(const GFXfont *gfxFont, uint16_t c) { #ifdef __AVR__ return &(((GFXglyph *)pgm_read_pointer(&gfxFont->glyph))[c]); #else