• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: High-quality offscreen rendering of text?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: High-quality offscreen rendering of text?
      • From: Jens Alfke <email@hidden>
References: 
 >High-quality offscreen rendering of text? (From: Jens Alfke <email@hidden>)

  • Prev by Date: High-quality offscreen rendering of text?
  • Next by Date: Predicate syntax and localisation
  • Previous by thread: High-quality offscreen rendering of text?
  • Next by thread: Re: High-quality offscreen rendering of text?
  • Index(es):
    • Date
    • Thread