Re: Problem with CircleView Example and NSLayoutManager angles...
Re: Problem with CircleView Example and NSLayoutManager angles...
- Subject: Re: Problem with CircleView Example and NSLayoutManager angles...
- From: Douglas Davidson <email@hidden>
- Date: Thu, 29 Jan 2004 15:59:16 -0800
On Jan 29, 2004, at 2:29 PM, Steve Mykytyn wrote:
As I think I understand it, there's no easy way to get the width of an
individual glyph. Suggestions other than appending that blank to the
end of the string?
Great question! It's good to see somebody looking closely at these
things.
To get the right edge of the rightmost glyph in a line, (1) go to the
right edge of the used rect, then (2) subtract the container's line
fragment padding.
Bonus points to anyone who figures out why I said "rightmost" rather
than "last"...
Douglas Davidson
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.