Replies: 4 comments 3 replies
-
hi,
the deprecation message means you shouldn't use tft.drawString("blah", x, y, &fonts::FreeMono18pt7b)); this is the same as doing this: tft.setFont(&fonts::FreeMono18pt7b);
tft.drawString("blah", x, y); |
Beta Was this translation helpful? Give feedback.
-
So what shall i replace ???? with if i am using default and swapped foonts only by using settextfont(1) and (2) ? settextfont(1) -------------->>> drawString("blah", x, y, ?????? ) settextfont(2) -------------->>> drawString("blah", x, y, ?????? ) Thank you for your kind assistant! |
Beta Was this translation helpful? Give feedback.
-
hi, settextfont(1) ~= setFont( &fonts::Font0 ); settextfont(2) ~= setFont( &fonts::Font2; |
Beta Was this translation helpful? Give feedback.
-
So in my case I just saw I use a few more, but I guess it shall be like this then? drawString("blah", x, y, 1 ) -->> drawString("blah", x, y, &fonts::Font1 ) Correct? |
Beta Was this translation helpful? Give feedback.
-
Why do I get warnings using Arduini IDE to compile code for ESP32-S3 using LovyanGFX library and what should I do to fix this - I have no declaration in my code for "drawString(....)" ?
In file included from C:\Users\XXXXXX\Ohmigo.server_3.1.1\Ohmigo.server_3.1.1.ino:464:
C:\Users\XXXXXX\Dropbox\Ohmigo.server_3.1.1\Display.h:144:114: warning: 'size_t lgfx::v1::LGFXBase::drawString(const String&, int32_t, int32_t, uint8_t)' is deprecated: use IFont [-Wdeprecated-declarations]
In file included from C:\Users\XXXXXX\Dropbox\MAS\libraries\arduino_188415\src/lgfx/v1_init.hpp:25,
from C:\Users\XXXXXX\libraries\arduino_188415\src/LovyanGFX.hpp:31,
from C:\Users\XXXXXX\Ohmigo.server_3.1.1\ElecrowSettings.h:2,
from C:\Users\XXXXXX\Ohmigo.server_3.1.1\Ohmigo.server_3.1.1.ino:220:
C:\Users\Thorbj rn Geiser O\Dropbox\MAS\libraries\arduino_188415\src/lgfx/v1/LGFXBase.hpp:682:19: note: declared here
Thank you for helping out!
Beta Was this translation helpful? Give feedback.
All reactions