Re: Sub-pixel font smoothing with CGBitmapContext
Re: Sub-pixel font smoothing with CGBitmapContext
- Subject: Re: Sub-pixel font smoothing with CGBitmapContext
- From: Timothy Wood <email@hidden>
- Date: Thu, 29 Jan 2009 10:42:44 -0800
On Jan 28, 2009, at 5:15 PM, Slava Pestov wrote:
Hi all,
When I render text into a CGBitmapContext that has been filled with a
solid color, sub-pixel font smoothing is not applied and text looks
suboptimal compared to text rendered elsewhere. How can I enable font
smoothing? Calling CGContextSetShouldSmoothFonts doesn't seem to help.
Are you talking about the red/blue edge antialiasing (based on
pixels having RGB pixels not collocated on the device)?
I've also tried to get this working (so I can build an CGImageRef
with embedded text for pixel-accurate blitting to the device via a
CALayer). Sadly, I've not been able to figure out a way to tell the
CGBitmapContext that I intend it to act like it is a particular
device. If you find a way, I'd love to try it too =)
-tim
_______________________________________________
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