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 12:34:49 -0800
On Jan 29, 2009, at 10:56 AM, David Duncan wrote:
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).
Heh; I totally would not have expected that from the name or docs.
But, adding a case like this in my text rendering testing harness
shows that it works. It renders into the CGBitmapContextRef such that
when I get my CALayer's contents to the resulting CGImageRef, it has
the proper device-specific antialiasing. I don't see this mentioned
anywhere in the docs, but maybe I missed it.
Here is my test case <http://people.omnigroup.com/bungi/TextDrawing-20090129.zip
>
Thanks!
-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