Re: NSLayoutManager and whitespace
Re: NSLayoutManager and whitespace
- Subject: Re: NSLayoutManager and whitespace
- From: Scott Thompson <email@hidden>
- Date: Thu, 13 Apr 2006 16:20:22 -0500
On Apr 13, 2006, at 11:33 AM, Ondra Cada wrote:
Scott,
On 13.4.2006, at 17:31, Scott Thompson wrote:
I layout the text on one long line and use that to find the
longest word (In this case 67) I then use that as the text
container size. I guess this value is too exact. I imagine that
the paragraph style or some other aspect of the text string means
that the exact width I've calculated is still too narrow.
By no means I am a text system guru, so take this all with a ton of
salt, but I guess your problem *might* lay in the default line
fragment padding, which is nonzero. Have you tried to send
setLineFragmentPadding:0 to your text container?
No, but I can :-) Since I'm much less of a guru... I hadn't
"encountered" the line fragment padding yet. :-)
I really appreciate your help.
Scott
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden