• 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: Nick Zitzmann <email@hidden>
  • Date: Thu, 9 Aug 2007 14:28:51 -0600


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


  • Follow-Ups:
    • Re: String height in pixels
      • From: vance <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>)

  • Prev by Date: Re: calling scrollPoint: on table view from separate thread locks up app
  • Next by Date: Re: NSTableView clickedColumn clickedRow implementation
  • Previous by thread: Re: String height in pixels
  • Next by thread: Re: String height in pixels
  • Index(es):
    • Date
    • Thread