Skip to content

Custom fonts with transparent back ground #1084

Discussion options

You must be logged in to vote

You have got to specify the background colour for antialiased fonts as the edges are blended with the background. If you do not specify the background then the pixels that should be blended show as foreground, so the anti-aliasing in lost and the characters appear to change shape.

I will be adding a new attribute switch to turn on/off the background whilst still maintaining anti-aliasing. This is partially implemented in the beta branch. Commands will be:

tft.setAttribute(SFBG_ENABLE, false); // Turn off smooth font background rendering
tft.setAttribute(SFBG_ENABLE, true);  // Turn on smooth font background rendering

However there is a bug in this new feature so it has not been incorpora…

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@karlheinz2000
Comment options

Answer selected by Bodmer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants