googlefonts / fontdiffenator

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

Don't parse ttx output #2

Closed rsheeter closed 6 years ago

rsheeter commented 6 years ago

Don't make XML and parse it. Delete https://github.com/googlefonts/fontdiffenator/blob/diff_cleanup/Lib/diffenator/ttxfont.py.

AFAIK the main options here are:

davelab6 commented 6 years ago

@m4rc1e said offline,

This approach cannot parse all lookup types. HBInput Generator is much closer. I've been using it to generate generate glyph palettes. the only downside is it cannot use the local feature properly, since it completely skips languages.

m4rc1e commented 6 years ago

ttx parsing was dropped in #3. Current implementation uses Nototool's HbInput, https://github.com/googlei18n/nototools/blob/master/nototools/hb_input.py to access unencoded glyphs.

Still not 100% happy with this solution, too slow on complex fonts and doesn't take languages into consideration. However, it's better than what we had before.