On Sun, Oct 6, 2013 at 10:15 PM, Jens Alfke <j...@mooseyard.com> wrote:

> (1) On a non-retina display, the text quality is poor. It looks like it’s
> drawn without sub-pixel anti-aliasing (“ClearType”). I do remember hearing
> that this mode is disabled for offscreen drawing, which makes sense because
> different LCDs have different sub-pixel layouts and of course CRTs don’t
> have any. But since the NSImage method I’m using customizes the rendering
> for each display, I was hoping it’d use ClearType. Is there any way I can
> get this to work? After all, the whole purpose of this app is to display
> fonts, so I want the best quality possible.
>

Could it be that you are missing a call to:

CGContextSetShouldSmoothFonts(context, YES);

If it still doesn't work, try putting

CGContextSetAllowsFontSmoothing(context, YES);

- Jiang
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to