summaryrefslogtreecommitdiff
path: root/src/displayapp/fonts/neofont.c
diff options
context:
space:
mode:
authorMichele Bini <michele.bini@gmail.com>2022-03-27 08:32:54 (GMT)
committerMichele Bini <michele.bini@gmail.com>2022-03-27 08:32:54 (GMT)
commitc8694c78c6cc05ae09e862e7ecd09407c7a3c3b7 (patch)
tree6bb1cc86276aef2d4f6f8a23727cc23e8bb4e7e0 /src/displayapp/fonts/neofont.c
parent1f39379a6519055d5633a560d041be6a69d4a2f5 (diff)
parentea4e6d8ad74ea982ad29c047c86bdac95a4ca539 (diff)
Merge ../InfiniSim/InfiniTime into ultraredux
Diffstat (limited to 'src/displayapp/fonts/neofont.c')
-rw-r--r--src/displayapp/fonts/neofont.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/displayapp/fonts/neofont.c b/src/displayapp/fonts/neofont.c
index 538b16b..12a467a 100644
--- a/src/displayapp/fonts/neofont.c
+++ b/src/displayapp/fonts/neofont.c
@@ -292,6 +292,12 @@ static uint8_t glyphs[][2] = {
_, _, _,
_, X, _ ),
+ G( X, _, _,
+ _, _, X,
+ _, X, _,
+ X, _, _,
+ _, _, X ),
+
G( _, X, _,
X, X, X,
_, X, _,
@@ -344,7 +350,7 @@ static const uint8_t * neofont0_glyph_bitmap_cb(const lv_font_t * font, uint32_t
}
if (unicode_letter == ' ') { return spc; }
- static const char *symbols = "-/:.,_?!#";
+ static const char *symbols = "-/:.,_?!%#";
if (unicode_letter < 0x80) {
char*x = strchr(symbols,((uint8_t)unicode_letter));
if (x != NULL) {
@@ -354,7 +360,7 @@ static const uint8_t * neofont0_glyph_bitmap_cb(const lv_font_t * font, uint32_t
return glyphs[sizeof(glyphs)/sizeof(glyphs[0])-1];
}
-const lv_font_t neofont0 = {
+lv_font_t neofont0 = {
.get_glyph_dsc = neofont0_glyph_dsc_cb, /*Set a callback to get info about gylphs*/
.get_glyph_bitmap = neofont0_glyph_bitmap_cb, /*Set a callback to get bitmap of a glyp*/
.line_height = 6, /*The real line height where any text fits*/