Re: Space Required By Text
Re: Space Required By Text
- Subject: Re: Space Required By Text
- From: <email@hidden>
- Date: Wed, 30 May 2001 11:50:54 -0600 (MDT)
On Wed, 30 May 2001, David Remahl wrote:
>
No, actually it would not...I really do need the full rect, including
>
the height of the text...
I forgot, actually NSSize works with floats:
float textWidth, textHeight;
textWidth = [@"your string" sizeWithAttributes:yourDict].width;
textHeight = [@"your string" sizeWithAttributes:yourDict].height;
Unless I misunderstand your needs, this would give you the height and
width of the rect your text would occupy!