pub fn text_layout(
rasterizer: &TextRasterizer,
text: &TextAt<'_>,
style: &TextStyle,
size: PictureSize,
) -> Result<TextLayoutReport, TextRasterError>Expand description
The layout of text in style on a canvas of size, laid out with rasterizer’s fonts
and placed as a frame places it.
§Errors
Returns the text host’s refusal: no fonts, or a style out of range.