FROM : Matt Budd (Madentec)
DATE : Fri Apr 01 19:43:55 2005
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
DATE : Fri Apr 01 19:43:55 2005
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
| Related mails | Author | Date |
|---|---|---|
| Matt Budd (Madente… | Apr 1, 19:43 | |
| Douglas Davidson | Apr 1, 19:54 |






Cocoa mail archive

