Skip to main content

derive_cap_px

Function derive_cap_px 

Source
pub fn derive_cap_px(metrics: &FontMetrics, size_px: f32) -> f32
Expand description

Cap height (logical px) for vertical centering: the bearing of an uppercase reference glyph (‘H’), falling back to the tallest uppercase glyph, then to a fraction of the em when no metrics are available.