Skip to main content

wrap

Function wrap 

Source
pub fn wrap(
    text: &str,
    width: f64,
    cap: f64,
    m: &dyn TextMeasure,
) -> Vec<String>
Expand description

text broken into lines no wider than width at cap height cap, at spaces; a word wider than the line stands alone on one.