This will cause issues, when compiling on big-endian architecture.
Should use pgm_read_word(…) instead of pgm_read_byte(…) and functions like drawChar(…) should handle argument c and related variables as uint16_t and not unsigned char.
Became aware of this, when preparing a minimal patch to support UTF8 without big changes to Adafruit-GFX-Library.
My Diff has about 89 lines, where about half of the lines is above issue.
This will cause issues, when compiling on big-endian architecture.
Should use
pgm_read_word(…)instead ofpgm_read_byte(…)and functions likedrawChar(…)should handle argumentcand related variables asuint16_tand notunsigned char.Became aware of this, when preparing a minimal patch to support UTF8 without big changes to Adafruit-GFX-Library.
My Diff has about 89 lines, where about half of the lines is above issue.