Skip to content

Handle Chrome font rendering weirdness with "pixelShift" comparison #107

@tybrd916

Description

@tybrd916

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:
image

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: #106

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions