• 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: String height in pixels
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: String height in pixels


  • Subject: Re: String height in pixels
  • From: vance <email@hidden>
  • Date: Thu, 9 Aug 2007 13:39:59 -0700

Thank you so much Nick it looks perfect now!

On Aug 9, 2007, at 1:28 PM, Nick Zitzmann wrote:


On Aug 9, 2007, at 2:23 PM, vance wrote:

Does anyone have any idea why there are be few extra pixels on the top? The black box represents the center with height equal to heightForStringDrawing().

This caught me too a while back. The answer is it's because NSString drawing uses the Jaguar-style typesetter behavior, I'm guessing for backward compatibility reasons. If you switch the layout manager to use the Jaguar "with compatibility" typesetter behavior, then that ought to fix the problem.


Nick Zitzmann
<http://www.chronosnet.com/>



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >String height in pixels (From: vance <email@hidden>)
 >Re: String height in pixels (From: Nick Zitzmann <email@hidden>)
 >Re: String height in pixels (From: vance <email@hidden>)
 >Re: String height in pixels (From: Nick Zitzmann <email@hidden>)

  • Prev by Date: Re: NSTableView clickedColumn clickedRow implementation
  • Next by Date: Memory Management and NSView
  • Previous by thread: Re: String height in pixels
  • Next by thread: NSTableView clickedColumn clickedRow implementation
  • Index(es):
    • Date
    • Thread