pixelmatch
pixelmatch copied to clipboard
Handle Chrome font rendering weirdness with "pixelShift" comparison
Hi @mourner ,
I can only imagine what your life is like right now in the midst of invasion! This is certainly not urgent, but I just wanted to document here...
I wanted to pose a question and propose a possible solution to the issue where Chrome and other browsers are often inconsistent in their anti-aliased font rendering like below output from latest pixelmatch:

A human can see "New Client" is shifted a few pixels up and over between the two screenshots, and might consider it within the threshold of "close enough - PASS". Anti-aliasing parameters don't seem to get it to filter out the false positive. So I forked your repo and made this pull request: https://github.com/mapbox/pixelmatch/pull/106