Re: Sub-pixel font smoothing with CGBitmapContext
Re: Sub-pixel font smoothing with CGBitmapContext
- Subject: Re: Sub-pixel font smoothing with CGBitmapContext
- From: David Duncan <email@hidden>
- Date: Thu, 29 Jan 2009 10:56:08 -0800
On Jan 28, 2009, at 5:15 PM, Slava Pestov wrote:
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.
Its been a while since I last looked at this, but I think the
context's format needs to be native endian (add the
kCGBitmapByteOrder32Host flag).
--
David Duncan
Apple DTS Animation and Printing
_______________________________________________
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