Skip to main content

text_width

Function text_width 

Source
pub fn text_width(text: &str) -> f64
Expand description

Approximate the rendered pixel width of text at 11px Verdana (the shields.io default). Uses per-character width buckets derived from the shields.io source.