googlefonts / fontdiffenator

Font comparison tool
Apache License 2.0
80 stars 13 forks source link

Diff variable fonts #15

Closed m4rc1e closed 6 years ago

m4rc1e commented 6 years ago

Variable fonts can now be diffed and their tables dumped. They can also be diffed against static ttfs or other variable fonts (user will need to input which instance to diff).

This implementation uses fontTools.varLib.mutator.instantiateVariableFont to gen an in-memory static instance which then gets diffed.

I felt this approach was better than writing my own code to derive instance data. FontTools already has tests in place https://github.com/fonttools/fonttools/tree/master/Tests/varLib and we shouldn't reinvent the wheel. I can also report any bugs I find to the fontTools repo.

m4rc1e commented 6 years ago

@davelab6 can be merged now.

davelab6 commented 6 years ago

I felt this approach was better than writing my own code to derive instance data

Good job