pub fn text_width(text: &str, gw: f32, spacing: f32) -> f32
Width a string would occupy with the given glyph width + spacing.