Font antialiasing changes depending on text length when center aligned? Help!
in
Android Processing
•
2 years ago
HI,
I've unsuccessfully tried to render antialiased text center aligned using the default android fonts as well as createFont. Both at the exact same size I'm displaying, ensuring I place the text to the nearest whole pixel.
The problem seems to be tied to the text length. Sometimes it is crisp and sometimes it's not. You can test with the following in the draw loop:
textAlign(CENTER, CENTER);
text("font rendering test "+millis(), int(screenWidth/2), int(screenHeight /2));
Just wondering if there is a work around?
Cheers.
1