JustifiedWord

data class JustifiedWord(val text: String, val x: Float, val width: Float)

One word positioned by full justification. The layout engine pre-computes the x-offset of every word so the renderer can draw justified lines with one drawText call per word and zero extra math.

Constructors

Link copied to clipboard
constructor(text: String, x: Float, width: Float)

Properties

Link copied to clipboard

Characters of this word (no surrounding spaces).

Link copied to clipboard

Advance width of text at the line's style.

Link copied to clipboard
val x: Float

X-offset of the word's left edge relative to the line's left edge.