pub fn text_width(line: &str, style: TextStyle) -> f32Expand description
Width in logical units of a single line (no \n handling).
use ferravex_render::{Color, text::{TextStyle, text_width}};
let s = TextStyle::modern(16., Color::new(1., 1., 1., 1.));
assert_eq!(text_width("10", s), text_width("88", s)); // tabular digits