diff options
| author | Michele Bini <michele.bini@gmail.com> | 2022-03-28 00:52:13 (GMT) |
|---|---|---|
| committer | Michele Bini <michele.bini@gmail.com> | 2022-03-28 00:52:13 (GMT) |
| commit | b5517a61803bb3c328cf4fc87d834657be40ba07 (patch) | |
| tree | 5f134b5c97f3b4a1800f527fc60901947851f8be /src/displayapp/fonts/neofont.c | |
| parent | e1fa843d772892b2c63bab902efb14a42ba37a2d (diff) | |
Improve temperature display
Diffstat (limited to 'src/displayapp/fonts/neofont.c')
| -rw-r--r-- | src/displayapp/fonts/neofont.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/displayapp/fonts/neofont.c b/src/displayapp/fonts/neofont.c index 6c41b67..163e7e0 100644 --- a/src/displayapp/fonts/neofont.c +++ b/src/displayapp/fonts/neofont.c @@ -304,6 +304,12 @@ static uint8_t glyphs[][2] = { X, X, X, _, X, _ ), + G( _, X, _, + X, _, X, + _, X, _, + _, _, _, + _, _, _ ), + }; #undef X @@ -357,7 +363,13 @@ static const uint8_t * neofont0_glyph_bitmap_cb(const lv_font_t * font, uint32_t return glyphs[36+(x-symbols)]; } } - return glyphs[sizeof(glyphs)/sizeof(glyphs[0])-1]; + + switch (unicode_letter) { + case 0xB0: + return glyphs[sizeof(glyphs)/sizeof(glyphs[0])-1]; + } + + return glyphs[sizeof(glyphs)/sizeof(glyphs[0])-2]; } lv_font_t neofont0 = { |
