pub fn area_lines(
render: &mut dyn RenderContext,
text: &str,
width: f64,
) -> Vec<AreaLine>Expand description
Lay text out the way area paints it in a box width wide with the font
already set on render: hard lines at \n, soft wrap after spaces (a word longer
than the box breaks between chars). For sizing before layout (an auto-growing
composer counts lines.len()). Never empty: an empty text is one empty line.