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

Shapes each text node’s text in preorder with shape on a picture of size, as resolve lays them out.

§Errors

Returns the first refusal of shape.