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: David Duncan <email@hidden>
- Date: Thu, 6 Jan 2011 14:58:36 -0800
On Jan 6, 2011, at 2:51 PM, James Bucanek wrote:
> David Duncan <mailto:email@hidden> wrote (Thursday, January 6, 2011 11:53 AM -0800):
>
>> On Jan 6, 2011, at 10:28 AM, James Bucanek wrote:
>>
>>> So how can I get my text to draw as smoothly as the Finder?
>>
>> Subpixel antialiasing requires a background to antialias against, and your
>> layer is probably transparent. If you supply a background (by drawing one into
>> the context first) then you should get subpixel antialiasing, assuming it is
>> otherwise enabled.
>
> Ah, that's it. Yes, my background is transparent and needs to be transparent (it gets composited over other images), so I guess that's the end of that quest. :(
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 Duncan
_______________________________________________
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