On Dec 9, 2008, at 8:21 AM, Chunk 1978 wrote:

i have several views that are added and replaced by a main window
using core animation... i've noticed that the text (label objects,
checkbox text, etc.) in each view is not being anti-aliased.

this link ( 
http://att.macrumors.com/attachment.php?attachmentid=147663&d=1228770137
) will show you an image displaying this problem.  the window on the
left is from
within Interface Builder (anti-aliased text), the window on the right
is the running build (text with aliasing).  how can i solve this
problem?  it's kinda surprising that it's not anti-aliasing the text
automatically.  hopefully there's some option i'm just forgetting to
check off.

Assuming your text is always going to be drawn on top the window, the simple fix is to check the "Draws Background" property of your text field in IB, and then choose the windowBackgroundColor from the Developer palette in the color picker.

What's going on is this: the text is (normally) antialiased, but what is not active is subpixel antialiasing, which is what Quartz calls "font smoothing." The problem is that subpixel antialiasing requires that the text know the background color that it is drawing onto at the time it is drawn. But CoreAnimation renders everything into separate layers, and then composites them all together.

-Peter


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to