Skip to main content

TextMeasure

Trait TextMeasure 

Source
pub trait TextMeasure {
    // Required method
    fn measure(&self, text: &str, font_size: f32, max_width: f32) -> Size;
}
Expand description

Text measurement callback.

Required Methods§

Source

fn measure(&self, text: &str, font_size: f32, max_width: f32) -> Size

Measure the width and height of a text string within a maximum width.

Implementors§