Re: How to get "colored" font smoothing in a CALayer
Re: How to get "colored" font smoothing in a CALayer
- Subject: Re: How to get "colored" font smoothing in a CALayer
- From: James Bucanek <email@hidden>
- Date: Fri, 7 Jan 2011 17:17:06 -0700
David Duncan <mailto:email@hidden> wrote (Thursday,
January 6, 2011 3:58 PM -0800):
You might be able to get something more acceptable by turning on shadowing in
the context before you draw the text. This appears to be what the Finder does
(if you look closely at the labels on the desktop they don't use sub-pixel
antialiasing either, but have a subtle shadow effect).
David,
I tried drawing with a shadow, and while it produces an
interesting effect in my UI, it doesn't improve the smoothing of
the text.
As an experiment I filled the context with white before drawing
any text and that does the trick. The text looks identical to
what appears in the Finder and elsewhere.
So at least now I know. Thanks for the great information.
--
James Bucanek
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden