Skip to main content

shape_text_with_font

Function shape_text_with_font 

Source
fn shape_text_with_font(
    text: &str,
    font: Arc<ResolvedFont>,
    small_caps: bool,
    apply_kerning: bool,
    variations: &[FontVariation],
    font_size: f32,
    font_optical_sizing: FontOpticalSizing,
    fontdb: &Database,
) -> Option<Vec<Glyph>>
Expand description

Converts a text into a list of glyph IDs.

This function will do the BIDI reordering and text shaping.