• 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: Turn off font hinting?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Turn off font hinting?


  • Subject: Re: Turn off font hinting?
  • From: Jens Alfke <email@hidden>
  • Date: Mon, 4 Jan 2010 15:39:39 -0800

On Jan 4, 2010, at 1:47 PM, Sander Stoks wrote:

> I wrote some code to draw an NSString rotated by an arbitrary angle, which can be manipulated interactively.  The results are surprisingly bad (compared to how good font rendering is in general on the Mac).  Most notably, the character positions "jump around" in whole pixel increments while I'm rotating the text.  Usually, this is caused by hinting which tries to place vertical and horizontal lines at integer pixels.  Does anyone know of a way to switch this off (temporarily) for a given context?

I don't think Quartz's text renderer uses hinting in the normal sense; this is part of why text looks different on Mac than on Windows. (Subpixel anti-aliasing largely removes the need for hinting, and makes the hints actually mess up the shape of the glyphs.)

I'm not sure why you're getting this result. Are you just applying a rotation transform to the NSGraphicsContext and then drawing the NSString? Have you tried using the lower-level CG APIs instead (it shouldn't make a difference, but you never know.)

—Jens_______________________________________________

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: Turn off font hinting?
      • From: "Sander Stoks" <email@hidden>
References: 
 >Turn off font hinting? (From: Sander Stoks <email@hidden>)

  • Prev by Date: Re: GC memory leak - what is it?
  • Next by Date: Re: Looking up a NSString constant at runtime
  • Previous by thread: Re: Turn off font hinting?
  • Next by thread: Re: Turn off font hinting?
  • Index(es):
    • Date
    • Thread