Skip to main content

Module diff

Module diff 

Source
Expand description

Port of fontTools.diff.diff: the unified diff of the TTX dumps of two fonts, with the built-in diff (u_diff) or an external diff tool (run_external_diff).

Structs§

DiffOptions
The tables to compare, as the command line gives them: tags padded to four characters, or GlyphOrder.

Functions§

run_external_diff
run_external_diff: the lines (with their ends) of the diff of the TTX dumps of two fonts, saved as left.ttx and right.ttx in a temporary directory, by the external tool diff_tool with the arguments diff_args. Fails with what the tool writes to standard error, if anything.
u_diff
u_diff: the lines (with their ends) of the unified diff, with context_lines lines of context, of the TTX dumps of two fonts, with Python’s difflib. The headers name the files with their modification times.