RichLine

data class RichLine(val segments: List<RichSegment>, val totalWidth: Float, val baseline: Float, val height: Float)

One wrapped line of a RichTextNode paragraph.

Constructors

Link copied to clipboard
constructor(segments: List<RichSegment>, totalWidth: Float, baseline: Float, height: Float)

Properties

Link copied to clipboard

Distance from the line top to the dominant baseline.

Link copied to clipboard

Total height of the line including ascent + descent + line gap.

Link copied to clipboard
Link copied to clipboard

Sum of every segment's RichSegment.width.