You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I got an issue while trying to padding text as a picture below. It creates black verical line after setTextPadding() is being used (_fillbg is set). I've try to debugging with PADDING_DEBUG flag.
Currently, I found out that a variable fillheight was declared as unsigned int16. In my case, this value goes negative and fill rect with height 65535, so it appears as vertical line.
After changed the variable to int16_t, it's fixed my issue. I'm not sure, it supposed to changed this variable type or it's fault from a custom font that being used.
BTW, a custom font that i used is Baloo2 regular with font size 12, I've created by using your pde script.
Here is my converted font baloo2_regular_12.h.zip
I notice that there was only some characters such as f or i that cause the issue. (gdY more than maxAscent 😵💫)
Dev. environment
PlatformIO
ESP32 with arduino-esp32 master branch
TFT_eSPI version 2.4.61
ST7735 1.8" with SPI interface, no touch controller
Thank you in advance.
The text was updated successfully, but these errors were encountered:
Hi,
I got an issue while trying to padding text as a picture below. It creates black verical line after
setTextPadding()
is being used (_fillbg
is set). I've try to debugging withPADDING_DEBUG
flag.Currently, I found out that a variable
fillheight
was declared as unsigned int16. In my case, this value goes negative and fill rect with height 65535, so it appears as vertical line.After changed the variable to
int16_t
, it's fixed my issue. I'm not sure, it supposed to changed this variable type or it's fault from a custom font that being used.TFT_eSPI/Extensions/Smooth_font.cpp
Line 434 in 24b0e88
BTW, a custom font that i used is Baloo2 regular with font size 12, I've created by using your pde script.
Here is my converted font baloo2_regular_12.h.zip
I notice that there was only some characters such as
f
ori
that cause the issue. (gdY
more thanmaxAscent
😵💫)Dev. environment
arduino-esp32
master branchTFT_eSPI
version 2.4.61Thank you in advance.
The text was updated successfully, but these errors were encountered: