Re: Softening NSAttributedString
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