Skip to main content

shape

Function shape 

Source
pub fn shape(font: &EmbeddedFont, text: &str) -> Vec<ShapedGlyph>
Expand description

Shape text against font using rustybuzz. Returns the glyph stream in visual order (LTR for this slice). Glyph IDs, advances, and offsets come from rustybuzz, so substitutions, kerning, and combining-mark positioning are preserved. An empty text returns an empty Vec without invoking the shaper.