pub fn metrics_indexed(&self, index: usize, px: f32) -> Metrics {
        let glyph = &self.glyphs[index];
        let scale = Font::scale_factor(px, self.units_per_em);
        glyph.metrics(scale)
    }
/// Retrieves the layout metrics at the given index. You normally want to be using
/// metrics(char, f32) instead, unless your glyphs are pre-indexed.
/// # Arguments
///
/// * `index` - The glyph index in the font to to generate the layout metrics for.
/// * `px` - The size to generate the layout metrics for the glyph at. Cannot be negative.
/// # Returns
///
/// * `Metrics` - Sizing and positioning metadata for the glyph.
Retrieves the layout metrics at the given index. You normally want to be using
metrics(char, f32) instead, unless your glyphs are pre-indexed.
Retrieves the layout metrics at the given index . You normally want to be using metrics ( char f32 ) instead unless your glyphs are pre - indexed .
pub fn metrics_indexed(&self, index: usize, px: f32) -> Metrics {
        let glyph = &self.glyphs[index];
        let scale = Font::scale_factor(px, self.units_per_em);
        glyph.metrics(scale)
    }
pub fn metrics_indexed ( & self , index : usize , px : f32 ) -> Metrics { let glyph = & self . glyphs [ index ] ; let scale = Font :: scale_factor ( px , self . units_per_em ) ; glyph . metrics ( scale ) }
Retrieves the layout metrics at the given index.
Retrieves the layout metrics at the given index .
&self
index
usize
px
f32
`Metrics` - Sizing and positioning metadata for the glyph.
` Metrics ` - Sizing and positioning metadata for the glyph .
&self
index
usize
px
f32