Skip to main content

shape_texts

Function shape_texts 

Source
pub fn shape_texts(
    layout: &EvaluatedLayout,
    size: PictureSize,
    shape: impl FnMut(&TextRasterRequest) -> Result<Arc<ShapedText>, TextRasterError>,
) -> Result<Vec<Option<Arc<ShapedText>>>, TextRasterError>
Expand description

Each text node’s shaped text, in preorder, shaped by shape on a picture of size: what resolve lays the texts out with.

§Errors

Returns the first refusal of shape.