• 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
Scaling Fonts;
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Scaling Fonts;


  • Subject: Scaling Fonts;
  • From: Matt Budd (Madentec) <email@hidden>
  • Date: Fri, 1 Apr 2005 10:43:55 -0700

Hello,

Is there a way to determine the largest font size for a given font that will fit in a rect?

I know that NSAttributedString has a - (NSSize)size method, and I could iteratively increase the font size until I hit one that was too large and then use the last size, but is there a better/quicker way?

 - Matt

_______________________________________________
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


  • Follow-Ups:
    • Re: Scaling Fonts;
      • From: Douglas Davidson <email@hidden>
  • Prev by Date: isa swizzling
  • Next by Date: Re: NSToolbar Problem
  • Previous by thread: isa swizzling
  • Next by thread: Re: Scaling Fonts;
  • Index(es):
    • Date
    • Thread