diff options
| author | Michele Bini <michele.bini@gmail.com> | 2022-04-03 18:51:55 (GMT) |
|---|---|---|
| committer | Michele Bini <michele.bini@gmail.com> | 2022-04-03 19:37:11 (GMT) |
| commit | 96b982fd94b48e441ab3a582bfafc7410bf0cbb1 (patch) | |
| tree | 4ecb1c1e1949c8f150b4eb4d70a79e2c75cd74c2 /src/displayapp/fonts | |
| parent | 4bca082ceab2ed8c56a1929cdc0c850bae75240f (diff) | |
Add temperature display
Diffstat (limited to 'src/displayapp/fonts')
| -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 9248769..25fa3de 100644 --- a/src/displayapp/fonts/neofont.c +++ b/src/displayapp/fonts/neofont.c @@ -308,6 +308,13 @@ static const uint8_t glyphs[][2] = { _, X, _, X, X, X, _, X, _ ), + + G( _, X, _, + X, _, X, + _, X, _, + _, _, _, + _, _, _ ), + }; #undef X @@ -349,7 +356,12 @@ static const uint8_t * neofont0_glyph_bitmap_cb(const lv_font_t * font, uint32_t return custom; } - 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]; } static bool neofont15_glyph_dsc_cb(const lv_font_t * font, lv_font_glyph_dsc_t * dsc_out, uint32_t unicode_letter, uint32_t unicode_letter_next) |
