#font #parse #high-level #parser #graphics #text

yanked feta

High level parsing of metadata from OpenType font files

0.0.0 Jan 12, 2023

#140 in #high-level

MIT/Apache

3KB

feta

This crate provides a high level interface for reading font metadata. It is built on top of the read-fonts low level parsing library.

This is still in very early stages and not yet ready for use.

Features

The first cut of the library intends to expose the following metadata:

  • Variation axes and named instances
    • Conversion to normalized coordinates
  • Global font metrics with variation support (units per em, ascender, descender, etc)
  • Glyph metrics with variation support (advance width, left side-bearing, etc)
  • Codepoint to nominal glyph identifier mapping
    • Unicode variation selectors

Future goals include:

  • Localized strings
  • Layout feature enumeration
    • Coverage (is a particular glyph processed by a feature?)
  • Color palettes
  • Bitmap strikes

Non-goals

This library is not intended to support glyph scaling (loading and hinting of outlines) or shaping (processing of subsitution and positioning features).

Dependencies

~2.5MB
~61K SLoC