google / google/fonts

VF fonts are not delivered correctly for Firefox

Open
#2,211 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
HTML
Stars
20.5k
Forks
2.9k
Avg merge
1d 21h
Merged PRs (30d)
95

Description

VF fonts are not rendering correctly for Firefox. They render correctly when the user-agent is changed to Chrome.

It can be tested using official documentation at [https://developers.google.com/fonts/docs/css2](https://developers.google.com/fonts/docs/css2).

Rendering when user agent is left as default:
![image](https://user-images.githubusercontent.com/8191296/67039767-9c19e380-f154-11e9-90ec-55e015e0b8ae.png)

Rendering when user agent is spoofed to Chrome:
![image](https://user-images.githubusercontent.com/8191296/67039742-87d5e680-f154-11e9-96fd-37a6e86ccff9.png)

(force refresh (CTRL+F5) is required to reload the page)

Example (https://fonts.sandbox.google.com/css2?family=Crimson+Pro:wght@400..500&family=Literata):
The following is delivered (excerpt) when user-agent is Firefox
```
/* latin */
@font-face {
font-family: 'Crimson Pro';
font-style: normal;
font-weight: 400;
src: url( [redacted] ) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin */
@font-face {
font-family: 'Crimson Pro';
font-style: normal;
font-weight: 500;
src: url( [redacted] ) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
```

The following is delivered (excerpt) when user-agent is spoofed to Chrome:
```
/* latin */
@font-face {
font-family: 'Crimson Pro';
font-style: normal;
font-weight: 400 500;
src: url( [redacted] ) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
```

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.