Function position_words

Source
pub fn position_words(
    words: &Words,
    shaped_words: &ShapedWords,
    text_layout_options: &ResolvedTextLayoutOptions,
) -> WordPositions
Expand description

Positions the words on the screen (does not layout any glyph positions!), necessary for estimating the intrinsic width + height of the text content.