Skip to main content

wrapped_block_width

Function wrapped_block_width 

Source
pub fn wrapped_block_width(lines: &[String], size: f64) -> f64
Expand description

The widest wrapped line’s width (px) at font size — the natural width of a wrapped text block, e.g. for a GeomLabel background box sized to fit its wrapped text.