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.
Properties
Link copied to clipboard
the maximum width the layout engine had available when wrapping the text. Used by the renderer to apply TextAlign — Center/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.