google / google/fonts

Establish mapping for usWidthClass to css font-stretch

Open
#1,706 2 comments 0 reactions 0 assignees View on GitHub
I API / Website / Platform
Dominant language
HTML
Stars
20.5k
Forks
2.9k
Avg merge
1d 21h
Merged PRs (30d)
95

Description

We'll need this If we start serving variable fonts which contain a width axis.

We currently have the following for usWeightClass to css font-weight:

| font style name | font usWeightClass | css font-weight |
|-----------------|--------------------|-----------------|
| Thin | 250 | 100 |
| ExtraLight | 275 | 200 |
| Light | 300 | 300 |
| Regular | 400 | 400 |
| ... | | |

It would be nice to have this documented and tests in place before we begin on boarding wdth axis fonts.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.