Function layout_2013::text::font_metrics_for_style

source ·
pub fn font_metrics_for_style(
    font_context: &LayoutFontContext,
    style: Arc<Font>,
) -> FontMetrics
Expand description

Returns the metrics of the font represented by the given FontStyleStruct.

#[inline] because often the caller only needs a few fields from the font metrics.

§Panics

Panics if no font can be found for the given font style.