fn metrics(&self, key: FontKey, _size: Size) -> Result<Metrics, Error> {
        let font = self.fonts.get(&key).ok_or(Error::FontNotLoaded)?;

        Ok(font.metrics())
    }
/// Get metrics for font specified by FontKey
Get metrics for font specified by FontKey
Get metrics for font specified by FontKey
fn metrics(&self, key: FontKey, _size: Size) -> Result<Metrics, Error> {
        let font = self.fonts.get(&key).ok_or(Error::FontNotLoaded)?;
        Ok(font.metrics())
    }
fn metrics ( & self , key : FontKey , _size : Size ) -> Result < Metrics , Error > { let font = self . fonts . get ( & key ) . ok_or ( Error :: FontNotLoaded ) ? ; Ok ( font . metrics ( ) ) }
Get metrics for font specified by FontKey
Get metrics for font specified by FontKey
&self
key
FontKey
_size
Size