plan

fun plan(lines: List<List<Double>>, spaceWidth: Double, candidateWidths: List<Double>, indent: Double): VerseLayoutPlan(source)

Chooses a column width and balanced row starts for the supplied word widths.

Parameters

lines

Nonnegative word widths, in order, for each printed line.

spaceWidth

Nonnegative width of the gap between adjacent words, in the same units.

candidateWidths

Positive column widths worth trying. An empty list yields width zero.

indent

Nonnegative indentation applied to continuation rows.