Skip to main content

wrap_text

Function wrap_text 

Source
pub fn wrap_text(
    resolver: &dyn FontResolver,
    style: &TextStyle,
    text: &str,
    max_width: f32,
) -> Vec<String>
Expand description

Wraps text to max_width points. Explicit \n in the source text start a new paragraph/line unconditionally.