Function papergrid::util::string::get_text_dimension
source · pub fn get_text_dimension(text: &str) -> (usize, usize)
Expand description
Returns string width and count lines of a string. It’s a combination of [string_width_multiline
] and count_lines
.