googlefonts / fontdiffenator

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

v0.0.2: Remove ttxn and add missing diffs #3

Closed m4rc1e closed 6 years ago

m4rc1e commented 6 years ago

During Typolabs and LGM I worked on this tool quite a bit. I needed to diff several heavily used families. It marks a significant improvement over the previous release.

Dropping the ttxn dump implementation required a lot of refactoring. I also felt that the previous version was incomplete, it was missing name table and font attribute diffs. I decided it would be best to include them in this refactor at the same time.

I've spent quite a bit of time writing better tests. I'm fairly confident that if a major refactoring was undertaken, the tests are a good source of truth.

Improvements since v0.0.1 release:

m4rc1e commented 6 years ago

Just a quick demo

Diffenator

Nunito-Regular.ttf vs Nunito-Regular.ttf

attribs 8 modified

table attrib value_a value_b
OS/2 usWinDescent 279.0 275.0
head modified 2017/02/16 11:56:11 2018/02/28 14:34:06
OS/2 ulUnicodeRange2 1 3
OS/2 ulUnicodeRange1 536870919 536871439
OS/2 ulCodePageRange1 536871315 536871319

metrics 1 modified

glyph diff_adv diff_lsb diff_rsb
fl 85.0 0 0

kern 58336 new

left right value
AE uni04AA.loclBSH -4
AE uni04D0 -14
AE uni20B8 -12
AE uni20AE -12
AE uni04D2 -14

kern 844 modified

left right diff
f icircumflex 69.0
f hbar 66.0
uni020B question -52.0
bracketleft icircumflex 49.0
parenleft icircumflex 49.0

kern missing No differences

names new No differences

names 6 modified

id string_a string_b
(0, 1, 0, 0) Copyright 2014 The Nunito Project Authors (contact@sansoxygen.com) Copyright 2014 The Nunito Project Authors (https://github.com/googlefonts/NunitoFont)
(0, 3, 1, 1033) Copyright 2014 The Nunito Project Authors (contact@sansoxygen.com) Copyright 2014 The Nunito Project Authors (https://github.com/googlefonts/NunitoFont)
(3, 1, 0, 0) 3.001;NeWT;Nunito-Regular 3.502;NeWT;Nunito-Regular
(3, 3, 1, 1033) 3.001;NeWT;Nunito-Regular 3.502;NeWT;Nunito-Regular
(5, 1, 0, 0) Version 3.001 Version 3.502; ttfautohint (v1.8.1)

names missing No differences

marks 683 new

base_glyph mark_glyph base_x base_y mark_x mark_y
uni20AE dotbelowcomb 299 0 -150 0
uni20AE uni0308 299 705 -150 491
uni20AE uni0335 299 353 -150 246
uni051D uni0328 0 0 -150 10
uni051D uni031B 0 0 -150 491

marks modified No differences

marks missing No differences

glyphs 256 new

glyph --- | uni01D4 uni01E5 uni01E9 uni01EF uni021F

glyphs 12 modified

glyph diff
uni0326.alt 12010.5
uni1E08 1608.04166667
Ccedilla 1608.04166667
uni1E1D 1557.33333333
Scedilla 1477.08333333

glyphs missing No differences

davelab6 commented 6 years ago

@m4rc1e ready to be merged now?

m4rc1e commented 6 years ago

Yep, I'll merge.