Re: String height in pixels
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