Skip to main content

calculate_wrap_points

Function calculate_wrap_points 

Source
pub fn calculate_wrap_points(
    text: &str,
    viewport_width: usize,
) -> Vec<WrapPoint>
Expand description

Calculate wrap points for text

Given a width constraint, calculates where the text needs to wrap