• 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: Softening NSAttributedString
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Softening NSAttributedString


  • Subject: Re: Softening NSAttributedString
  • From: Ricky Sharp <email@hidden>
  • Date: Tue, 27 Sep 2005 17:56:59 -0500


On Sep 27, 2005, at 11:49 AM, Michael Becker wrote:

I am drawing NSAttributedStrings in my custom view at fairly small sizes. The font size is already rather small but then NSAffineTransforms are used to draw the strings even smaller. However, these strings are not softened at all. I realised that e.g. iPhoto (in its photobook designer) has nicely smoothened strings, how can I achieve this in my app?

There was a discussion about this on quartz-dev** back in Feb of this year. The subject was "what can cause ATSUI to not anti-alias?"


The solution seems to be to render the font at a large size and then using a transformation, reducing size as needed. One poster in the thread ended up using 100pt. Reason for such a large size was to also eliminate bad results in kerning when rendering with very small point sizes.

** <http://lists.apple.com/mailman/listinfo/quartz-dev>

___________________________________________________________
Ricky A. Sharp         mailto:email@hidden
Instant Interactive(tm)   http://www.instantinteractive.com

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Softening NSAttributedString (From: Michael Becker <email@hidden>)

  • Prev by Date: Re: substringWithRange: memory leak problem
  • Next by Date: Re: interactive command line apps
  • Previous by thread: Re: Softening NSAttributedString
  • Next by thread: Add Login Item/Invoke Menu Items Action
  • Index(es):
    • Date
    • Thread