Instance Property

tighteningFactorForTruncation

The threshold for using tightening as an alternative to truncation.

Declaration

var tighteningFactorForTruncation: Float { get }

Discussion

When the line break mode specifies truncation, the text system attempts to tighten inter character spacing as an alternative to truncation, provided that the ratio of the text width to the line fragment width does not exceed 1.0 + the tightening factor is set to this property. Otherwise the text is truncated at a location determined by the line break mode.

See Also

Getting Line Breaking Information

var lineBreakMode: NSLineBreakMode

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

var hyphenationFactor: Float

The paragraph’s threshold for hyphenation.

var allowsDefaultTighteningForTruncation: Bool

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