Free font bounding box correction

1 pixel correctio for background bounding box determination
This commit is contained in:
Bodmer
2017-07-07 23:52:01 +01:00
parent cbc8d209a3
commit bacd198832
3 changed files with 4 additions and 4 deletions

View File

@@ -2370,7 +2370,7 @@ void TFT_eSPI::pushColors(uint8_t *data, uint32_t len)
// Bresenham's algorithm - thx wikipedia - speed enhanced by Bodmer to use
// an eficient FastH/V Line draw routine for line segments of 2 pixels or more
#if defined (ESP32) || defined (RPI_WRITE_STROBE)
#if defined (RPI_ILI9486_DRIVER) || defined (ESP32) || defined (RPI_WRITE_STROBE)
void TFT_eSPI::drawLine(int32_t x0, int32_t y0, int32_t x1, int32_t y1, uint32_t color)
{
@@ -3264,7 +3264,7 @@ int16_t TFT_eSPI::drawString(const char *string, int poX, int poY, int font)
if ((font == 1) && (gfxFont))
{
poX +=xo; // Adjust for negative offset start character
poY -= 1 + glyph_ab * textsize;
poY -= glyph_ab * textsize;
}
#endif
switch(padding) {

View File

@@ -1,6 +1,6 @@
{
"name": "TFT_eSPI",
"version": "0.16.13",
"version": "0.16.14",
"keywords": "TFT, ESP8266, NodeMCU, ESP32, ILI9341, ST7735, ILI9163, S6D02A1, ILI9486",
"description": "A TFT SPI graphics library for ESP8266",
"repository":

View File

@@ -1,5 +1,5 @@
name=TFT_eSPI
version=0.16.13
version=0.16.14
author=Bodmer
maintainer=Bodmer
sentence=A fast TFT library for ESP8266 processors and the Arduino IDE