Skip to content

Commit

Permalink
Fixed degree symbol (U+00B0) bitmap and glyph by using an encoding wh…
Browse files Browse the repository at this point in the history
…ich needs only 2 bitmap bytes. This ensures that all glyph offsets match again.
  • Loading branch information
BlueAndi committed Jan 9, 2025
1 parent 2ecc94f commit ed8811b
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions lib/Fonts/src/TomThumb.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@
**
** Jan 08, 2025: Beautified for better readability.
** Andreas Merkle ([email protected])
**
** Jan 09, 2025: Fixed degree symbol (U+00B0) bitmap and glyph by using an
** encoding which needs only 2 bitmap bytes. This ensures that all glyph
** offsets match again.
** Andreas Merkle ([email protected])
*/

#define TOMTHUMB_USE_EXTENDED 1
Expand Down Expand Up @@ -185,7 +190,7 @@ const uint8_t TomThumbBitmaps[] PROGMEM = {
0xC0, /* [107] U+00AD '­' softhyphen */
0xDA, 0x80, /* [108] U+00AE '®' registered */
0xE0, /* [109] U+00AF '¯' macron */
0xC0, 0xC0, 0x00, /* [110] U+00B0 '°' degree */
0xD8, 0x00, /* [110] U+00B0 '°' degree */
0x5D, 0x0E, /* [111] U+00B1 '±' plusminus */
0xC9, 0x80, /* [112] U+00B2 '²' twosuperior */
0xEF, 0x80, /* [113] U+00B3 '³' threesuperior */
Expand Down Expand Up @@ -396,7 +401,7 @@ const GFXglyph TomThumbGlyphs[] PROGMEM = {
{ 200, 2, 1, 3, 0, -3 }, /* [107] U+00AD '­' softhyphen */
{ 201, 3, 3, 4, 0, -5 }, /* [108] U+00AE '®' registered */
{ 203, 3, 1, 4, 0, -5 }, /* [109] U+00AF '¯' macron */
{ 204, 8, 3, 4, 0, -5 }, /* [110] U+00B0 '°' degree */
{ 204, 3, 3, 4, 0, -5 }, /* [110] U+00B0 '°' degree */
{ 206, 3, 5, 4, 0, -5 }, /* [111] U+00B1 '±' plusminus */
{ 208, 3, 3, 4, 0, -5 }, /* [112] U+00B2 '²' twosuperior */
{ 210, 3, 3, 4, 0, -5 }, /* [113] U+00B3 '³' threesuperior */
Expand Down

0 comments on commit ed8811b

Please sign in to comment.