• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
hyphenationFactor in typesetter and layout manager
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: hyphenationFactor in typesetter and layout manager
      • From: Aki Inoue <email@hidden>
  • Prev by Date: Binding NSTableView Double Click argument and target to file's owner
  • Next by Date: Re: How do I guarantee that an object is dealloced on the main thread?
  • Previous by thread: Binding NSTableView Double Click argument and target to file's owner
  • Next by thread: Re: hyphenationFactor in typesetter and layout manager
  • Index(es):
    • Date
    • Thread