diff options
Diffstat (limited to 'src/displayapp/fonts/neofont.c')
| -rw-r--r-- | src/displayapp/fonts/neofont.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/displayapp/fonts/neofont.c b/src/displayapp/fonts/neofont.c index b1abad4..db2363a 100644 --- a/src/displayapp/fonts/neofont.c +++ b/src/displayapp/fonts/neofont.c @@ -346,7 +346,8 @@ static bool neofont0mono_glyph_dsc_cb(const lv_font_t * font, lv_font_glyph_dsc_ /* Get the bitmap of `unicode_letter` from `font`. */ static const uint8_t * neofont0mono_glyph_bitmap_cb(const lv_font_t * font, uint32_t unicode_letter) { - static const uint8_t spc[2] = {0,0}; + static const uint8_t spc[] = { 0, 0 }; + static uint8_t custom[2]; /* Your code here */ // /* The bitmap should be a continuous bitstream where @@ -374,6 +375,12 @@ static const uint8_t * neofont0mono_glyph_bitmap_cb(const lv_font_t * font, uint case 0xB0: return glyphs[sizeof(glyphs)/sizeof(glyphs[0])-1]; } + + if ((0xF0000 < unicode_letter) && (unicode_letter < 0xF7FFF)) { + custom[0] = unicode_letter; + custom[1] = (unicode_letter >> 7); + return custom; + } return glyphs[sizeof(glyphs)/sizeof(glyphs[0])-2]; } |
