RichSegment
data class RichSegment(val text: String, val style: TextStyle, val xOffset: Float, val width: Float, val yOffset: Float = 0.0f)
One segment of a wrapped rich-text line. Multiple segments make up a RichLine; each segment carries its own style so the renderer can issue a single drawText call per segment without losing the per-span formatting.