Re: High-quality offscreen rendering of text?
Re: High-quality offscreen rendering of text?
- Subject: Re: High-quality offscreen rendering of text?
- From: Jiang Jiang <email@hidden>
- Date: Sun, 06 Oct 2013 22:37:44 +0200
On Sun, Oct 6, 2013 at 10:15 PM, Jens Alfke <email@hidden> 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 (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