Instance Property

tighteningFactorForTruncation

The threshold for using tightening as an alternative to truncation.

Declaration

@property float tighteningFactorForTruncation;

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 value of tighteningFactorForTruncation. Otherwise the text is truncated at a location determined by the line break mode. The default value is 0.05. This value can be a positive or negative value. Values less than or equal to 0.0 result in not tightening.

See Also

Controlling hyphenation and truncation

hyphenationFactor

The paragraph’s threshold for hyphenation.

allowsDefaultTighteningForTruncation

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