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.

Glyph IDs, advances, and offsets come from rustybuzz, so substitutions, kerning, and combining-mark positioning are preserved. Empty text returns an empty Vec without invoking the shaper.