From 1e1525010e4469cabd92e93272253be8ae4cc140 Mon Sep 17 00:00:00 2001 From: Bodmer Date: Wed, 24 Oct 2018 09:58:20 +0100 Subject: [PATCH] Fix issue #225 --- TFT_eSPI.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/TFT_eSPI.cpp b/TFT_eSPI.cpp index aeb0766..afaedd1 100644 --- a/TFT_eSPI.cpp +++ b/TFT_eSPI.cpp @@ -4160,7 +4160,11 @@ int16_t TFT_eSPI::drawString(const char *string, int poX, int poY, int font) uint16_t cheight = 8 * textsize; #ifdef LOAD_GFXFF - bool freeFont = (font == 1 && gfxFont && !fontLoaded); + #ifdef SMOOTH_FONT + bool freeFont = (font == 1 && gfxFont && !fontLoaded); + #else + bool freeFont = (font == 1 && gfxFont); + #endif if (freeFont) { cheight = glyph_ab * textsize;