Re: Height and location of text within a line in NSLayoutManager ignoring spacing?
Re: Height and location of text within a line in NSLayoutManager ignoring spacing?
- Subject: Re: Height and location of text within a line in NSLayoutManager ignoring spacing?
- From: Douglas Davidson <email@hidden>
- Date: Mon, 18 Feb 2008 12:53:38 -0800
On Feb 18, 2008, at 11:53 AM, Keith Blount wrote:
Many thanks for your reply, much appreciated. The trouble is that I
don't just need the measurements of the text that is laid out in the
text container, but also of the arbitrary control string that I am
going to draw behind the text, using NSString's -
drawWithAttributes:. Would I have to set up a separate layout
manager to calculate all of the measurements for the control glyphs?
(I suppose I could cache that information given that the control
glyph attributes and thus sizes won't change.)
That sounds like a reasonable plan, if it really is an arbitrary text
string. Another option might be to use
drawWithRect:options:attributes:, which can do baseline-relative
drawing.
Douglas Davidson
_______________________________________________
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