Skip to main content

text_width

Function text_width 

Source
pub fn text_width(text: &str, widths: &CellWidths) -> usize
Expand description

How many cells of the screen text takes: one per character, two for a character widths has wide (a Japanese or Chinese one, from the font atlas’s wide glyphs). Every length limit on text and every layout that measures it counts with this.