pub fn caret_offsets(text: &str, size: f32) -> Vec<f32>Expand description
Caret positions for a single line of text at size px with the default
UI font: one x per char boundary in logical order (chars + 1 values,
starting at 0). A cluster’s advance is split evenly across its chars.