Fix #402
This commit is contained in:
1 parent
92f12cd45c
commit
af4a96a47a
3 files changed
+3
-2
No files matched your search
@@ -2352,6 +2352,7 @@ int16_t TFT_eSPI::textWidth(const char *string, uint8_t font)
|
||||
str_width += pgm_read_byte( widthtable + uniCode); // Normally we need to subtract 32 from uniCode
|
||||
else str_width += pgm_read_byte( widthtable + 32); // Set illegal character = space width
|
||||
}
|
||||
if ((font == 2) && (str_width > 0)) str_width--;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user