Skip to main content

shape_text

Function shape_text 

Source
pub fn shape_text(text: &str, font_data: &[u8]) -> Option<Vec<ShapedGlyph>>
Expand description

Shape text using the given font data.

Returns None if the font data can’t be parsed. For standard fonts (no font data), callers should skip shaping entirely.