clip_to_cells_text

Function clip_to_cells_text 

Source
pub fn clip_to_cells_text(
    registry: &GlyphRegistry,
    text: &str,
    w: usize,
) -> (String, bool)
Expand description

Clip a plain string to at most w cells.

Returns the clipped string and whether clipping occurred.