Re: NSString drawInRect:withAttributes: clips descenders
Re: NSString drawInRect:withAttributes: clips descenders
- Subject: Re: NSString drawInRect:withAttributes: clips descenders
- From: Ricky Sharp <email@hidden>
- Date: Wed, 03 May 2006 15:01:32 -0500
On Wednesday, May 03, 2006, at 01:59PM, Brant Sears <email@hidden> wrote:
>That is the problem. When I try to make the font smaller, it looks
>like crap, so I made it 10 point. I think the reality is just that I
>need to make the rectangle bigger.
Are you applying any shadows to the text? Shadows will also get clipped. You can search the archives for a thread that showed up here not too long ago. I outlined a workaround where I take shadow metrics into account and adjust the width/height of the rect accordingly.
Having said that, I've never had any problems with non-shadowed text. I'm always able to use the given size and nothing gets clipped. I've used a wide range of text sizes from 8 or so all the way up to 72.
--
Rick Sharp
Instant Interactive(tm)
_______________________________________________
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