Overwrite text using tft.print()? #2951
-
Sending text to a display using the Soon discovered this doesn't work, with methods of blanking out existing text using sprites, filled rectangles, overwriting first in the background colour, etc. recommended. All good but why isn't there a "special character" that when Yes, this would only work reliably for monospaced fonts, but would make things easier with text of random length not set to appear in a fixed region of the screen. Or in other terms, why doesn't Realizing this question comes often, though mostly in the context of using FWIW, using a 240 x 320 display - ILI9341 driver in landscape orientation, with FreeFont FM9, monospaced 9pt. Relative new user of the library. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Set a background colour to overwrite. See example here on how to do this: |
Beta Was this translation helpful? Give feedback.
That behaviour is intentional and is compatible with the Adafruit_GFX library.
Use setTextPadding to overwrite old text.