Skip to content

Stem Darkening boundaries are incorrect for high ppi ('retina') displays (with fractional scaling) #17

@taprobane99

Description

@taprobane99

Your script works perfectly on my 70 ppi display.

I noticed that stem darkening had little visual effect on my 260 ppi and 218 ppi displays.

Both displays are set to 200% scaling.

But after altering the default boundaries from 500, 1000, 1667, 2333 to 1000, 2000, 3334, 4666 it works.

Thinking about it, this makes sense, as each glyph will be drawn with double the number of pixels.

Also, I have set the darkening values to 500,500,500,0 but it still doesn't quite match the darkness on Mac OS X.

So, perhaps you could adjust the values in your script depending on the fractional scaling values set? The boundaries should also need to be changed by x1.25 for 125%, x1.5 for 150% scaling etc.

As for the darkening values, not sure on the solution. Perhaps those would also need to be changed by x2 etc. but obviously you can't exceed 500.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions