Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduced options for Google font weights #8

Open
scadergit opened this issue Aug 12, 2022 · 1 comment
Open

Reduced options for Google font weights #8

scadergit opened this issue Aug 12, 2022 · 1 comment

Comments

@scadergit
Copy link

It looks like Google has reduced font weight named instances to 300 to 800. If you choose any font, the most it ever has is the following options. Should I update the library to map weights within this range?

https://github.com/openlayers/mapbox-to-css-font/blob/master/index.js#L1

image

image

@scadergit
Copy link
Author

Hmm, maybe I spoke too soon, as The common Noto Sans has a broader range.

https://fonts.google.com/noto/specimen/Noto+Sans.

Perhaps the only problem is that Light should be 300, not 200.

https://github.com/openlayers/mapbox-to-css-font/blob/master/index.js#L6

Also looks like Black should be 900.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant