From ed8811b77e6b33ce61bc44566a5fc4de3c89a0e8 Mon Sep 17 00:00:00 2001 From: BlueAndi Date: Thu, 9 Jan 2025 08:31:31 +0100 Subject: [PATCH] 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. --- lib/Fonts/src/TomThumb.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/lib/Fonts/src/TomThumb.h b/lib/Fonts/src/TomThumb.h index 10e56d64..4d3aa78e 100644 --- a/lib/Fonts/src/TomThumb.h +++ b/lib/Fonts/src/TomThumb.h @@ -63,6 +63,11 @@ ** ** Jan 08, 2025: Beautified for better readability. ** Andreas Merkle (web@blue-andi.de) +** +** 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 (web@blue-andi.de) */ #define TOMTHUMB_USE_EXTENDED 1 @@ -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 */ @@ -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 */