Instance Property

hyphenationFactor

The paragraph’s threshold for hyphenation.

Declaration

iOS, Mac Catalyst, tvOS, watchOS
@property(readonly, nonatomic) float hyphenationFactor;
macOS
@property(readonly) float hyphenationFactor;

Discussion

Hyphenation is attempted when the ratio of the text width (as broken without hyphenation) to the width of the line fragment is less than the hyphenation factor. When the paragraph’s hyphenation factor is 0.0, the layout manager’s hyphenation factor is used instead. When both are 0.0, hyphenation is disabled. This property detects the user-selected language by examining the first item in preferredLanguages.

See Also

Getting Line Breaking Information

lineBreakMode

The mode that should be used to break lines in the receiver.

tighteningFactorForTruncation

The threshold for using tightening as an alternative to truncation.

allowsDefaultTighteningForTruncation

A Boolean value indicating whether the system may tighten inter-character spacing before truncating text.