TextScope
Mutable receiver passed to the text("...") { ... } configuration block.
Every property starts at the value of the inherited TextStyle from the enclosing scope; assigning to a property overrides it for this text only. The block returns a resolved TextStyle via build.
Two convenience flags — bold and italic — are provided for the common case; underneath they delegate to fontWeight and fontStyle.
Properties
Convenience flag that toggles between FontWeight.Bold and FontWeight.Normal. Reading this returns true when fontWeight is exactly FontWeight.Bold.
Base paragraph direction; Auto detects RTL scripts from content.
Weight on the 100..900 axis. Default: inherited.
Automatic hyphenation dictionary; null disables it (the default). See com.conamobile.pdfkmp.layout.Hyphenators for bundled languages.
Convenience flag that toggles between FontStyle.Italic and FontStyle.Normal.
Kashida (tatweel) justification for cursive RTL text. Only effective when the line is justified and resolves to right-to-left. false by default.
Extra horizontal space inserted between glyphs. Default: inherited.
Distance between baselines of consecutive lines. 0.sp means use the font's natural value.
Widow control under the Slice strategy: minimum lines continuing on the next page after a break. 1 allows any split.
Orphan control under the Slice strategy: minimum lines kept together at the bottom of a page before a break. 1 allows any split.
What to do with lines dropped by maxLines.
Superscript / subscript positioning. Only meaningful on spans inside richText { } — plain paragraphs ignore it.
Whether the text is struck through. Defaults to inherited.