pub fn metrics(&self) -> Result<Metrics> {
        let str = std::fs::read_to_string(self.0.join(METRICS_FILE))?;
        let spec: metrics::Spec = ron::from_str(&str)?;
        spec.into_metrics()
    }
/// Resolves the path to the font's metrics file and tries to load it.
///
/// # Errors
///
/// Returns an error if the font metrics file is unreachable or unparseable as RON.
Resolves the path to the font's metrics file and tries to load it.
Resolves the path to the font ' s metrics file and tries to load it .
pub fn metrics(&self) -> Result<Metrics> {
        let str = std::fs::read_to_string(self.0.join(METRICS_FILE))?;
        let spec: metrics::Spec = ron::from_str(&str)?;
        spec.into_metrics()
    }
pub fn metrics ( & self ) -> Result < Metrics > { let str = std :: fs :: read_to_string ( self . 0 . join ( METRICS_FILE ) ) ? ; let spec : metrics :: Spec = ron :: from_str ( & str ) ? ; spec . into_metrics ( ) }
Resolves the path to the font's metrics file and tries to load it.
Resolves the path to the font ' s metrics file and tries to load it .
&self
errors
Returns an error if the font metrics file is unreachable or unparseable as RON.
Returns an error if the font metrics file is unreachable or unparseable as RON .