Instance Property

hyphenationFactor

The threshold controlling when hyphenation is done.

Declaration

iOS, tvOS
var hyphenationFactor: CGFloat { get set }
macOS
var hyphenationFactor: Float { get set }

Discussion

Whenever (width of the real contents of the line) / (the line fragment width) is below factor, hyphenation is attempted when laying out the line. Hyphenation slows down text layout and increases memory usage, so it should be used sparingly.

See Also

Configuring the Global Layout Manager Options

var allowsNonContiguousLayout: Bool

A Boolean that enables or disables noncontiguous layout.

var hasNonContiguousLayout: Bool

Indicates whether the layout manager currently has any areas of noncontiguous layout.

var showsInvisibleCharacters: Bool

A Boolean that specifies whether to substitute visible glyphs for whitespace and other typically invisible characters in layout.

var showsControlCharacters: Bool

A Boolean that specifies whether to substitute visible glyphs for control characters in layout.

var usesFontLeading: Bool

Indicates whether the receiver uses the leading provided in the font.

var backgroundLayoutEnabled: Bool

A Boolean that specifies whether the receiver generates glyphs and lays them out when the application’s run loop is idle.