text/shaping.rs#
Source: lib/text/shaping.rs
impl Text
fn set_shaping(&mut self, enabled: bool) -> boolEnable OpenType shaping for measure, draw, hit testing and carets. Returns the previous state so callers can scope this to a document's text tool.fn set_fallback_fonts(&mut self, fonts: &[u32])fn selection_spans(&mut self, text: &[u8], start: usize, end: usize) -> Vec<(i32,i32)>Visual spans for a logical UTF-8 selection. Mixed bidi text may require disjoint rectangles; the two endpoint carets alone are not sufficient.