Docsv2.12.12
Back to API Reference
Enum

TextJustify

Specifies how extra horizontal space is distributed when Justify is active. Mirrors the CSS Text Module Level 3 text-justify property values.

Remarks

Auto — distribute at word separators; if a line contains no word separators (typical for pure CJK content), fall back to InterCharacter. Default; matches CSS text-justify: auto behaviour. InterWord — distribute only at word-separator characters (UAX category Zs, excluding NBSP / narrow NBSP). Appropriate for scripts that separate words with spaces (Latin, Cyrillic, Greek, Korean). InterCharacter — distribute at every cluster boundary on the line. Appropriate for scripts without word separators (Japanese, Chinese, Thai). None — no expansion. Justified lines render as start-aligned.
public static readonly TextJustify Auto = 0

Distribute at word separators; fall back to cluster boundaries when no separators exist on the line.

public static readonly TextJustify InterWord = 1

Distribute only at word-separator characters (UAX Zs, excluding NBSP).

public static readonly TextJustify InterCharacter = 2

Distribute at every grapheme cluster boundary on the line.

public static readonly TextJustify None = 3

Do not expand. Justified lines render as start-aligned.