-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tft_eSPI printf not using bg colour #21
Comments
Thank you for using this library 😊 Unfortunately, I have never used the sprite feature. Thank you. |
Note: The full demo program for OpenFontRender library I wrote is here: https://github.com/MikeyMoMo/OpenFontRender-Example-program I have noticed the same thing. Just throw something on screen with foreground and background colors set. The background color is ignored. If you want it, that is a very good thing -- an invisible background color not changing the background of the characters. However, if you want the background color to happen, it is not good the way it is. I am writing to two different sprites and to the base tft screen. Here is a code snippet I wrote to check out every non-trivial call in your API listing. I posted elsewhere with other errors that came up while writing and testing this program such as text height is wrong and the bounding box is wrong. Here, the background color setting (done 2 ways) is ignored anyway. The letters come out white on black, not red.
|
As above. Sorry for the delay. As above it seems as though the background colour is ignored |
I just uploaded my full demo code that shows this (not) happening. It also shows how to use all but the most trivial calls to this library and even shows some of the trivial ones. It is my first Github repository. Please be kind... ;-))
There is a notation that the font BG color is not being used. I am not sure if that is in a sprite but it fails. I could do it to a sprite if necessary. I use OFR for both sprites and background (tft) screen writes and it operates the same both ways. Also under MikeyMoMo is a very full featured clock/calendar program that uses OFR for almost everything, sprites and tft writes. All works pretty well. Just a few little bugs to work out. SO glad to have this library!!! |
From v1.1, you can select background fill method. I am really sorry for the late update🙇♂️🙇♂️🙇♂️ |
This works. The lines I used are:
|
Hello there,
I am trying to update text in a sprite. The numbers are displayed in the right position and using the same setCursor position. The numbers are not clearing despite setting the background colour to match the background. Here is a code snippet of the updating of the text. I cant see what I could be doing wrong?
The text was updated successfully, but these errors were encountered: