pub fn measure_text( text: &str, max_width: Option<usize>, wrap: bool, ) -> TextMetrics
Performs the measure text operation.