• 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
Re: NSString drawInRect:withAttributes: clips descenders
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >NSString drawInRect:withAttributes: clips descenders (From: Brant Sears <email@hidden>)
 >Re: NSString drawInRect:withAttributes: clips descenders (From: Ondra Cada <email@hidden>)
 >Re: NSString drawInRect:withAttributes: clips descenders (From: Brant Sears <email@hidden>)

  • Prev by Date: Sound Manager?
  • Next by Date: Re: Refactoring tools available for Cocoa / ObjC?
  • Previous by thread: Re: NSString drawInRect:withAttributes: clips descenders
  • Next by thread: Re: NSString drawInRect:withAttributes: clips descenders
  • Index(es):
    • Date
    • Thread