Skip to content

Commit

Permalink
Merge pull request #2 from TadeuszKarpinski/enable-utf-8
Browse files Browse the repository at this point in the history
Add option to get charBounds of UTF-8 glyphs
  • Loading branch information
DoomHammer authored Jun 19, 2024
2 parents b603151 + ce6423e commit 6127609
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Adafruit_GFX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6127609

Please sign in to comment.