Crate fea_rs

Source
Expand description

Parsing and compiling the Adobe OpenType Feature File format.

The main entry point for this crate is the Compiler struct, which provides a builder-like interface for compiliing from source.

Re-exports§

pub use compile::Compiler;
pub use compile::Opts;
pub use parse::ParseTree;
pub use parse::TokenSet;

Modules§

compile
Compiling OpenType Layout tables
parse
Load and tokenize sources.
typed
typing for ast nodes. based on rust-analyzer.
util
helpers and utilties (mostly for testing/debugging?)

Structs§

Diagnostic
A diagnostic, including a message and additional annotations
DiagnosticSet
A set of diagnostics with the associated source info
GlyphMap
A glyph map for mapping from raw glyph identifiers to numeral GlyphId16s.
Node
A node in the token tree.
Token
A token is a chunk of text, tagged with a Kind.

Enums§

GlyphIdent
Either a glyph name or a CID
Kind
Kinds of tokens assigned during lexing and parsing.
Level
A diagnostic level
NodeOrToken
Either a Node or a Token.

Type Aliases§

GlyphSet
A sorted set of unique glyph ids.