Re: What's wrong with this font thing?
Re: What's wrong with this font thing?
- Subject: Re: What's wrong with this font thing?
- From: Graham Cox <email@hidden>
- Date: Thu, 30 Oct 2008 09:59:09 +1100
On 30 Oct 2008, at 9:45 am, Randall Meadows wrote:
Why does the height suddenly jump UP going from 16 down to 15 points?
I'm not sure, but could it be that there are thresholds where a
different master font is used? As you cross the threshold the system
decides to base the font on a different master.
A different solution if you know you are just displaying the text is
to convert the glyphs to a path and simply scale the path to fit. That
way you can scale it utterly smoothly with no jumps or sudden change
in appearance.
But if you wish to stick with using the Font Manager, wouldn't you be
better off doing a binary search for the right size? Gradually
shrinking the font to fit could end up being slow especially as there
may be all sorts of font loading/caching going on in the font manager.
A binary search would also allow you to start at any size and
*increase* the font size if necessary as well as decrease it, as well
as being the fastest way to get there. Just a thought.
hth, Graham
_______________________________________________
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