pub fn is_text_fit_in(w: i16, s: &str) -> bool