Skip to main content

text_width

Function text_width 

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

The width of a story text’s block: a full-width character is one em, the space, digits and other ASCII narrower. CSP does not lay the block out again when it opens the page, and breaks a text wider than its block (a shown ノンブル - 1 - lost its last -), so the narrow characters are given as much as the widest fonts take.