pub fn parse(source: &str) -> Result<FontMetrics<'_>, ParseError>Expand description
Parse AFM v4.x text into borrowed font metrics.
Accepts LF/CRLF ASCII text and preserves comments and uninterpreted records. Optional fields retain absence. See the crate documentation for coverage.
ยงErrors
Returns a source-located ParseError for invalid text, unsupported versions,
missing required fields, malformed modeled records, or invalid section boundaries/counts.