Reputation: 605
I am editing a xib file in Xcode4 Interface Builder, buttons look OK, but labels are missing anti-aliasing.
When I create a new file and add labels, they do look fine. Any ideas?
Here is a screenshot (can't post images yet, sorry) https://i.sstatic.net/GlhHB.png
Upvotes: 3
Views: 1222
Reputation: 118681
What you're seeing isn't a lack of antialiasing, it's a lack of subpixel antialiasing. Note the difference:
The colored edges line up with the "subpixels" on your LCD, so that a solid block of pixels is illuminated and it still looks like the right color.
The problem here is that Core Animation doesn't do subpixel antialiasing as automatically as it does when you don't use CA. The simple solution is to disable the CA Layer backing on your view (or whatever superview has it). Otherwise, this question has some more useful explanation and info about workarounds.
Upvotes: 6