Skip to content

Commit 11202f8

Browse files
authored
Correct format() in source-code-variable.css
This is required to let browsers that don’t support variable fonts (e.g. Firefox on Windows 8) avoid downloading them and fall back to something usable. Signed-off-by: Anders Kaseorg <andersk@mit.edu>
1 parent d3f1a59 commit 11202f8

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

source-code-variable.css

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@
33
font-weight: 200 900;
44
font-style: normal;
55
font-stretch: normal;
6-
src: url('./WOFF2/VAR/SourceCodeVariable-Roman.ttf.woff2') format('woff2'),
7-
url('./WOFF/VAR/SourceCodeVariable-Roman.ttf.woff') format('woff'),
8-
url('./VAR/SourceCodeVariable-Roman.ttf') format('truetype');
6+
src: url('./WOFF2/VAR/SourceCodeVariable-Roman.ttf.woff2') format('woff2-variations'),
7+
url('./WOFF/VAR/SourceCodeVariable-Roman.ttf.woff') format('woff-variations'),
8+
url('./VAR/SourceCodeVariable-Roman.ttf') format('truetype-variations');
99
}
1010

1111
@font-face{
1212
font-family: 'Source Code Variable';
1313
font-weight: 200 900;
1414
font-style: italic;
1515
font-stretch: normal;
16-
src: url('./WOFF2/VAR/SourceCodeVariable-Italic.ttf.woff2') format('woff2'),
17-
url('./WOFF/VAR/SourceCodeVariable-Italic.ttf.woff') format('woff'),
18-
url('./VAR/SourceCodeVariable-Italic.ttf') format('truetype');
16+
src: url('./WOFF2/VAR/SourceCodeVariable-Italic.ttf.woff2') format('woff2-variations'),
17+
url('./WOFF/VAR/SourceCodeVariable-Italic.ttf.woff') format('woff-variations'),
18+
url('./VAR/SourceCodeVariable-Italic.ttf') format('truetype-variations');
1919
}

0 commit comments

Comments
 (0)