graphicore / specimenTools

Apache License 2.0
29 stars 5 forks source link

Added support for mordern weight values starting with 100 #25

Closed kontur closed 6 years ago

kontur commented 6 years ago

This adds support for weight classes that don't adhere to the windows imposed restrictions for light weights and go down beyond the 200. I've encountered this with several users that have generated their webfonts to match the css weights, and then been confused when the detection through specimen tools fails.

This doesn't catch weight values inbetween hundreds, which I've also seen. For those we could eventually throw an error or warning, but this PR catches some more common weight classes, based on the designers interpretation of that value.

graphicore commented 6 years ago

Looks good. Thanks.