pub fn text_width(s: &str) -> i16