fontoxide-diff 0.2.0

Comparing fonts table by table; a port of fontTools.diff
Documentation

fontoxide-diff

A Rust port of fontTools.diff: compares two fonts table by table, as a unified diff of their TTX dumps, or as a summary of which tables are present and binary identical. It is part of fontoxide, a port of fontTools to Rust.

Most projects should depend on the fontoxide crate, which re-exports this one as fontoxide::diff (feature diff, on by default). Depend on this crate directly to keep the dependency tree small.

On the command line, this is fontoxide diff, from fontoxide-cli:

fontoxide diff old.ttf new.ttf

Compatibility

This version follows fontTools 4.69.1. Given the same fonts and options, the output is the same as fontTools', byte for byte, as checked with fontTools' own tests and with fixtures generated by running fontTools. Differences from fontTools are listed in COMPATIBILITY.md.

The crate is pure safe Rust and builds for wasm32-unknown-unknown. The TTX dumps are made in memory; the pager and external diff tools need an operating system.

License

MIT, like fontTools. See LICENSE.