diff options
Diffstat (limited to 'firmware/font.c')
-rw-r--r-- | firmware/font.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/firmware/font.c b/firmware/font.c index e02f276efe..624e0de9a7 100644 --- a/firmware/font.c +++ b/firmware/font.c | |||
@@ -35,6 +35,7 @@ | |||
35 | #include "debug.h" | 35 | #include "debug.h" |
36 | #include "panic.h" | 36 | #include "panic.h" |
37 | #include "rbunicode.h" | 37 | #include "rbunicode.h" |
38 | #include "diacritic.h" | ||
38 | 39 | ||
39 | #ifndef BOOTLOADER | 40 | #ifndef BOOTLOADER |
40 | /* Font cache includes */ | 41 | /* Font cache includes */ |
@@ -604,6 +605,8 @@ int font_getstringsize(const unsigned char *str, int *w, int *h, int fontnumber) | |||
604 | 605 | ||
605 | for (str = utf8decode(str, &ch); ch != 0 ; str = utf8decode(str, &ch)) | 606 | for (str = utf8decode(str, &ch); ch != 0 ; str = utf8decode(str, &ch)) |
606 | { | 607 | { |
608 | if (is_diacritic(ch, NULL)) | ||
609 | continue; | ||
607 | 610 | ||
608 | /* get proportional width and glyph bits*/ | 611 | /* get proportional width and glyph bits*/ |
609 | width += font_get_width(pf,ch); | 612 | width += font_get_width(pf,ch); |