MeasuredText

data class MeasuredText(val lines: List<TextLine>, val style: TextStyle, val size: Size, val paragraphWidth: Float = size.width, val resolvedDirection: TextDirection = TextDirection.Ltr) : MeasuredNode

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

Constructors

Link copied to clipboard
constructor(lines: List<TextLine>, style: TextStyle, size: Size, paragraphWidth: Float = size.width, resolvedDirection: TextDirection = TextDirection.Ltr)

Properties

Link copied to clipboard
Link copied to clipboard

the maximum width the layout engine had available when wrapping the text. Used by the renderer to apply TextAlignCenter/End/Justify need to know the full paragraph slot, not just the widest measured line.

Link copied to clipboard

Paragraph direction with com.conamobile.pdfkmp.style.TextDirection.Auto already resolved against the content. RTL paragraphs flip what TextAlign.Start / End anchor to.

Link copied to clipboard
open override val size: Size

Final size of the node within its parent.

Link copied to clipboard