Re: NSAttributedString boundingRectWithSize vs. paragraph margins
Re: NSAttributedString boundingRectWithSize vs. paragraph margins
- Subject: Re: NSAttributedString boundingRectWithSize vs. paragraph margins
- From: Kyle Sluder <email@hidden>
- Date: Wed, 23 Jan 2013 23:01:58 -0800
On Jan 23, 2013, at 8:17 PM, Matt Neuburg <email@hidden> wrote:
> It may be that the height is right despite the narrowed width, but since the narrowed width is unexpected, it would be nice to be assured of this. m.
Why is the narrowed width unexpected? You told the text system to use 20pt margins on each side of a 100pt text container.
If you're not sure that the value is correct, fill the rect with a color and then draw the text atop it. That'll quickly tell you whether they match up.
--Kyle Sluder
_______________________________________________
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