Skip to main content

em_value

Function em_value 

Source
pub fn em_value(measurement: &Measurement) -> Option<f64>
Expand description

Converts a measurement to an em length: em passes through, mu uses the 18 mu per em ratio, and ex the standard 0.5 x-height ratio. Returns None for units with no fixed em relation (fill, pt, …).