pub fn styled_line(text: &str, ctx: &LineStyle<'_>) -> Line<'static>Expand description
Build one rendered line, splitting it into spans wherever the paint changes.
Spans are cut at grapheme boundaries and styled per run, so a wide character is highlighted as one unit and never half-painted.