I’m writing a retro type game for the iPhone, and need to render a pixel style font to the screen. However, it looks nice and sharp when I run it in the simulator, but not when I run it on the device. Is there any way that I can disable Anti-Aliasing for fonts? I have already tried this:
CGContextRef c = UIGraphicsGetCurrentContext();
CGContextSetShouldSmoothFonts(c, FALSE);
CGContextSetShouldAntialias(c, FALSE);
CGContextSetAllowsAntialiasing(c, FALSE);
Also, I’m using the font rendering class from http://github.com/zynga/FontLabel/tree/master
Figured it out, when I was rotating my UIView to draw in landscape mode, I wasn’t using enough digits for PI (3.14159 vs 3.14159265), and that fixed it. ^^