> -[NSString boundingRectWithSize:...] might do this, especially with the
> NSStringDrawingUsesDeviceMetrics flag ("Uses image glyph bounds instead of
> typographic bounds").Indeed. When I tried that method in the past, I got it working half-way with italicized text (the width was correct, but the height wasn't.) I ended up having to do more math on top of -boundingRectWithSize: based on the font's descender. Eventually it worked for my specific case, but I doubt my technique works in every scenario. I'll keep NSLayoutManager in mind for the future... _______________________________________________ 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]
