TextLineBreakStrategy Enum

How the places where the lines of a paragraph end are chosen among its break opportunities.

public enum TextLineBreakStrategy

Fields

NameValueDescription
Greedy0Each line takes as much of the text as fits, then the next line starts: fast, and the lines of a paragraph do not depend on the lines after them. The default.
Optimal1The breaks of the whole paragraph are chosen together (total fit, after Knuth and Plass), so that the lines but the last one are as evenly filled as possible: a line can end before the text that would fit if this leaves less room at the end of the lines after it.