MeasuredRichText

data class MeasuredRichText(val lines: List<RichLine>, val align: TextAlign, val paragraphWidth: Float, val size: Size, val resolvedDirection: TextDirection = TextDirection.Ltr) : MeasuredNode

Measurement result for a com.conamobile.pdfkmp.node.RichTextNode.

Mirrors MeasuredText but every line carries its own styled segments. Renderer treats this almost identically to MeasuredText except that it issues one drawText per segment instead of one per line.

Constructors

Link copied to clipboard
constructor(lines: List<RichLine>, align: TextAlign, paragraphWidth: Float, size: Size, resolvedDirection: TextDirection = TextDirection.Ltr)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Paragraph direction resolved against the spans' combined text. RTL flips what Start / End anchor to. Segment order within a line stays logical — uniform-style RTL paragraphs collapse to one segment per line, which the platform text engines render correctly; mixed-style RTL paragraphs may order segments LTR (documented limitation).

Link copied to clipboard
open override val size: Size

Final size of the node within its parent.