Hello.
I’ve noticed that drawing an ofTrueTypeFont
into an ofFbo
produces some artefacts around the edges of the characters.
The first line of text in the image below was drawn into the FBO. The second line of text was not drawn into the FBO.
Is there a way to make the first line look like the second line?
Thanks!
ofEnableAlphaBlending();
//...
// Draw FBO
if (shouldRedraw)
{
fbo.begin();
ofClear(0, 0);
font->drawString(text, x, y);
fbo.end();
}
fbo.draw(origin.x, origin.y);
// Draw font
font->drawString(text, x + dx, y + dy);