Skip to main content

layout_texts

Function layout_texts 

Source
pub fn layout_texts(
    layout: &EvaluatedLayout,
    resolved: &ResolvedLayout,
    size: PictureSize,
) -> (Vec<Option<u64>>, Vec<(u64, TextDraw)>)
Expand description

Each text node’s store key in preorder (None for empty text), and each distinct key’s raster request at its font size in resolved, wrapped at its unrounded content width plus the slack and clamped in its content height plus the slack.