azul_text_layout::text_layout

Function words_to_scaled_words

Source
pub fn words_to_scaled_words(
    words: &Words,
    font_bytes: &[u8],
    font_index: u32,
    font_metrics: FontMetrics,
    font_size_px: f32,
) -> ScaledWords
Expand description

Takes a text broken into semantic items and a font instance and scales the font accordingly.