TextStyle
Visual style applied to a piece of text.
Properties are merged top-down: a value set on a parent (com.conamobile.pdfkmp.dsl.PageScope.textStyle) cascades to children unless they override it. Inheritance happens in the builders, not here — this is the resolved output of that cascade.
Constructors
Properties
Horizontal alignment of wrapped lines inside the paragraph box. See TextAlign for the four options. Defaults to TextAlign.Start.
Base paragraph direction. TextDirection.Auto (default) detects RTL scripts (Arabic, Hebrew) from the content; see TextDirection.
Weight on the 100..900 axis.
Automatic hyphenation dictionary, or null (the default) to disable it.
Kashida (tatweel, U+0640) justification for cursive RTL scripts.
Extra horizontal spacing inserted between adjacent glyphs. 0.sp means use the font's natural advance widths.
Vertical distance between baselines of consecutive lines. 0.sp means use the font's natural line height.
Widow control: the slicing counterpart of minLinesBeforeBreak — at least this many lines must continue on the next page, otherwise lines are pulled forward from the previous page to join the lonely "widow". 1 (default) allows any split.
Orphan control: when the Slice strategy breaks this paragraph across pages, keep at least this many lines together at the bottom of the page before the break — fewer would leave a lonely "orphan" line. The paragraph moves to the next page whole when the minimum cannot be met. 1 (default) allows any split.
Vertical script position — superscript / subscript. Only takes effect on rich-text spans; see TextScript.