TextLine

data class TextLine(val text: String, val width: Float, val baseline: Float, val height: Float, val justifiedWords: List<JustifiedWord> = emptyList())

One word-wrapped segment of text plus the position of its baseline relative to the top of the surrounding MeasuredText block.

Constructors

Link copied to clipboard
constructor(text: String, width: Float, baseline: Float, height: Float, justifiedWords: List<JustifiedWord> = emptyList())

Properties

Link copied to clipboard

Distance from the top of the line box to the baseline, in PDF points.

Link copied to clipboard

Total height occupied by this line, including ascent + descent + line gap.

Link copied to clipboard

Word slices with pre-computed x-offsets when this line is fully justified (com.conamobile.pdfkmp.style.TextAlign.Justify); empty for every other alignment and for the last line of a paragraph, which stays start-aligned by typographic convention.

Link copied to clipboard

The actual characters that make up this line.

Link copied to clipboard

Advance width of text at the configured style, in PDF points.