Skip navigation.
 
mlScaling Fonts;
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

Related mailsAuthorDate
mlScaling Fonts; Matt Budd (Madente… Apr 1, 19:43
mlRe: Scaling Fonts; Douglas Davidson Apr 1, 19:54