pub trait TextMeasure { // Required method fn measure(&self, text: &str, font_size: f32, max_width: f32) -> Size; }
Text measurement callback.
Measure the width and height of a text string within a maximum width.