hyphenationFactor in typesetter and layout manager
hyphenationFactor in typesetter and layout manager
- Subject: hyphenationFactor in typesetter and layout manager
- From: Ross Carter <email@hidden>
- Date: Sun, 05 Oct 2008 17:24:41 -0400
The hyphenation factor can be set for both NSATSTypesetter and
NSLayoutManager. My tests indicate that it is sufficient to send
setHyphenationFactor: to the typesetter alone (and simpler, if a
document has multiple layouts). Is that correct, or must each layout
manager's hyphenation factor also be set?
Also, if the typesetter's hyphenation factor is set to a non-zero
value, what is the best way to disable hyphenation at the paragraph
level? Because NSParagraphStyle -setHyphenationFactor:0 causes the
typesetter's hyphenation factor to be used, is it appropriate to use a
very small value, such 0.01, for the paragraph's hyphenation factor?
The question arises because I would like to allow users to set a
hyphenation factor for the entire document, but to override that value
as desired at the paragraph level.
_______________________________________________
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