question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

feature request: add `fonttools diff` to compare fonts with ttx

See original GitHub issue

I often find myself using ttx in combination with some diffing tool, so much that I wrote a ttdiff shell function that takes two fonts (and optionally a list of table tags), and redirect the output of ttx to diff (pipes it to colordiff to get nice colors and less for pagination):

https://gist.github.com/anthrotype/6c3dce176314ec6ffb116b0f8561bee0

I guess many of us have their own variant of this. So I wonder, should we add a new sub-command, fonttools diff that uses python to do the same, so it works everywhere fonttools work and not just in a unix shell?

I think this is a nice first-time-contributor kind of PR. Any takers?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:22 (16 by maintainers)

github_iconTop GitHub Comments

2reactions
justvanrossumcommented, May 1, 2021

In the meantime https://pypi.org/project/fdiff/ was made by @chrissimpkins, it’s awesome!

2reactions
behdadcommented, Feb 26, 2018

I’ll leave it to Cosimo, others, to figure out.

Read more comments on GitHub >

github_iconTop Results From Across the Web

fonttools - PyPI
fontTools is a library for manipulating fonts, written in Python. The project includes the TTX tool, that can convert TrueType and OpenType fonts...
Read more >
refs/tags/3.1.2 - third_party/fonttools - Git at Google
fontTools is a library for manipulating fonts, written in Python. The project includes the TTX tool, that can convert TrueType and OpenType fonts...
Read more >
Introduction | gf-docs - Google Fonts documentation
To compare two fonts using fonttools ttx and meld : ... If you run into a bug, question, or have a feature request...
Read more >
Variable fonts and OpenType features (a theoretical & a ...
If ttx, how do I safely add the feature to the decompiled file? Tagged: ... But once different masters require different kerning values, ......
Read more >
fonttools [python-library] - Occam :: Details
fontTools is a library for manipulating fonts, written in Python. The project includes the TTX ... [feaLib] Added support for Variable Feature File...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found