> Also, keep in mind that character shapes may stick out of either edge by a > few pixels, especially with italics or script fonts. It's usually safest to > pad your bounding box by some fraction of the point-size.
I've noticed this too. If you need the absolute precise pixel-size of some text, then the only way I know of (that works with all different styles of text) is manually drawing the text into some temporary context, and analyzing its pixels. I'd love to be wrong on that, though, if anyone knows a better way. _______________________________________________ Cocoa-dev mailing list ([email protected]) 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/archive%40mail-archive.com This email sent to [email protected]
