Marc Foley 2220f7f1df [Compare] added vf vs v2.138 comparisons | 6 years ago | |
---|---|---|
.. | ||
diff_images | 6 years ago | |
README.md | 6 years ago |
Regression tests to determine whether the variable font match the previous unhinted v2.138 release.
master_ttf/ built with fontmake v1.6.0 using the following cli:
sh build-min.sh
Diffs produced by using Python's HTTPSimple server on this repo and viewing vf_vs_v2_138.html in Browserstack.
The html file contains every glyph in the font on a single line. Our goal is to ensure that both fonts overlay perfectly. The diff images show the very end of the line.
Three further html test files are provided:
cd ./to/this/repo
python -m SimpleHTTPServer
# Enabling browserstack local testing https://www.browserstack.com/local-testing
# view local site in browserstack
e7ece644e5
Following summary has been made by M Foley by reviewing each diff image
It's interesting to note that each platform will produce different results. This means it's not just the fonts which determine the end result. Rasterizers and shaping engines such as CoreText play a critical role as well. Due to this, it's probably impossible to get a 100% match.
The metrics may also differ between platforms because some browsers may not use the hvar table and others will (not tested, just a thought).
The master_ttf_interpolatable fonts which were used to construct the VF match perfectly in Chrome. This is the same for the master_ttf fonts.
This test is extreme since we're testing all glyphs without a single line break. If we compare typical samples of text, The results are much better.