pub fn shape_text_with_offset(
text: &str,
font_data: &[u8],
char_offset: u32,
) -> Option<Vec<ShapedGlyph>>Expand description
Shape a segment of text for a specific font, returning shaped glyphs and a mapping from glyph index to character range.
char_offset is added to cluster values so they reference positions
in a larger text buffer (useful for multi-run shaping).