Hi guys, I am a beginner, so please be gentle.
I am playing with a TFT display connected to an STM32F103RET6 board.
All fine until I try to increase/decrease numbers using custom fonts. It looks like the library does not accept background color on the custom fonts, only on default fonts. Like this, the previous text will not be cleared.
there are a couple solutions:
Draw a rectangle filled with the background color before writing the next text.
This works, but the text flickrers.
The other solution is to use canvas and draw it as a bitmap. the problem I am having is that it still does not clear the text underneath. I am sure I am doing something wrong, but I cannot find any more information apart from the one on the adafruit tutorial. Here is the relevant code:
Hi thanks for your reply.
this text will be preset numbers from 000 to 199.
I can make it work with display flicker. My problem is that the Bitmap solution is not working as they say. it doesn't clear the previous text. And this is what I would like to fix. as I said, I am sure I am making some stupid mistake