Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: String height in pixels



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

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>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.