• 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: "Sander Stoks" <email@hidden>
  • Date: Tue, 5 Jan 2010 16:44:22 +0100

> 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 know, that's why I was so surprised.

> 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.)

AFAIK, it's always Quartz doing the actual drawing.  I wanted to use Cocoa
here (in my otherwise Quartz-only drawing code) because the Quartz stuff
is a little low-level for my needs.  Things like ligature-substitution
happen above Quartz.

I indeed just apply an NSAffineTransform to the current context.

I think I'll have to do what PCWiz suggested, and draw into an offscreen
bitmap context.  Problem is, I want my app to support PDF-output as well,
in which case I probably want to output the "real" rotated text (and leave
it up to the PDF renderer to do its job right).  Rendering to bitmap also
means I'm introducing "resolution" in a so far purely vector-oriented app.
 Hrmm.

An alternative would be to extract the actual Beziers, apply the transform
to those, and do my own anti-aliased Bezier drawing (like AntiGrain) but
that sounds like a lot of work...

Thanks for your suggestions,
Sander

_______________________________________________

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: Jean-Daniel Dupas <email@hidden>
References: 
 >Turn off font hinting? (From: Sander Stoks <email@hidden>)
 >Re: Turn off font hinting? (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: iPhone: NSXMLParser problems
  • Next by Date: Using AppleEvents to copy and past text from any application
  • Previous by thread: Re: Turn off font hinting?
  • Next by thread: Re: Turn off font hinting?
  • Index(es):
    • Date
    • Thread