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 protected])
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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]