Fic #311
Pixel function used wrong width and height for bounds check. Remove String variable in smooth font code (not used) Correct ESP8266UncannyEyes example for new setAddrWindow parameters
This commit is contained in:
1 parent
66a21cb761
commit
1edfe6c680
6 files changed
+11
-10
No files matched your search
@@ -76,15 +76,13 @@ void TFT_eSPI::loadFont(String fontName)
|
||||
|
||||
unloadFont();
|
||||
|
||||
_gFontFilename = "/" + fontName + ".vlw";
|
||||
|
||||
// Avoid a crash on the ESP32 if the file does not exist
|
||||
if (SPIFFS.exists(_gFontFilename) == false) {
|
||||
if (SPIFFS.exists("/" + fontName + ".vlw") == false) {
|
||||
Serial.println("Font file " + fontName + " not found!");
|
||||
return;
|
||||
}
|
||||
|
||||
fontFile = SPIFFS.open( _gFontFilename, "r");
|
||||
fontFile = SPIFFS.open( "/" + fontName + ".vlw", "r");
|
||||
|
||||
if(!fontFile) return;
|
||||
|
||||
|
||||
Reference in new issue
Block a user