Closed rebior closed 1 year ago
The vlw files don't specify a space with, so this is guessed from the font height here: https://github.com/Bodmer/TFT_eSPI/blob/master/Extensions/Smooth_font.cpp#L139
In your use case gxadvance would probably work.
In your use case gxadvance would probably work.
This means I should set that value manually after loading the font?
Yes.
The pull request (#2540) provides a simple and backwards compatible solution for that issue. I tested it in my setup and the alignment is perfect. Some details: I added an additional enumeration argument to the loadFont methods with default value set to current behavior. With this enum the user can select how the space width is computed.
Description I created vlw font files from the font "Noto Sans Mono" on Linux. The space character is excluded as mentioned in the guide. I use drawString to put smooth text on the screen and all characters have equal width except for space characters, that are way smaller.
IDE: PlatformIO/Arduino
TFT_eSPI library version: 2.5.0
Board package esp32dev (cant't find exact version)
Procesor ESP32
TFT driver ST7735_BLACKTAB
Interface type SPI
The following screenshot shows the two strings
"HOST: "
and" IP: "
, both left aligned at the same x position. I would expect for the colons to be vertically aligned (which is the case if there are only characters other than space)I can also provide a vlw file if it helps.