diff options
Diffstat (limited to 'src/displayapp/fonts/neofont.c')
| -rw-r--r-- | src/displayapp/fonts/neofont.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/displayapp/fonts/neofont.c b/src/displayapp/fonts/neofont.c index cfc8e72..b2728f3 100644 --- a/src/displayapp/fonts/neofont.c +++ b/src/displayapp/fonts/neofont.c @@ -313,7 +313,8 @@ static const uint8_t glyphs[][2] = { /* Get the bitmap of `unicode_letter` from `font`. */ static const uint8_t * neofont0_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 @@ -336,6 +337,13 @@ static const uint8_t * neofont0_glyph_bitmap_cb(const lv_font_t * font, uint32_t return glyphs[36+(x-symbols)]; } } + + 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])-1]; } |
