Back to API Reference
Struct

LineStyleContext

sealed

Mutable alignment state for one line during layout.

public int lineIndex

Zero-based line index.

public int startCluster

First cluster belonging to the line.

public int endCluster

Exclusive end cluster of the line.

public HorizontalAlignment alignment

Resolved horizontal alignment.

public TextJustify justify

Resolved justification mode.

public LastLineAlignment lastLine

Resolved alignment override for the final line.

public float wordSpaceMin

Smallest word-separator width justification compression may reach, as a fraction of natural width.

public float wordSpaceMax

Largest word-separator width justification expansion spends before the letter and glyph levers, as a fraction of natural width.

public float letterSpaceMin

Largest letter-spacing reduction justification compression may spend, in em (non-positive).

public float letterSpaceMax

Largest letter-spacing addition justification expansion may spend, in em (non-negative).

public float glyphScaleMin

Smallest glyph-width fraction justification compression may reach; 1 disables the glyph lever.

public float glyphScaleMax

Largest glyph-width fraction justification expansion may reach; 1 disables the glyph lever.