• 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: What's wrong with this font thing?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: What's wrong with this font thing?
      • From: Randall Meadows <email@hidden>
References: 
 >What's wrong with this font thing? (From: Randall Meadows <email@hidden>)

  • Prev by Date: What's wrong with this font thing?
  • Next by Date: Re: What's wrong with this font thing?
  • Previous by thread: What's wrong with this font thing?
  • Next by thread: Re: What's wrong with this font thing?
  • Index(es):
    • Date
    • Thread