Skip to content

Commit 05a2212

Browse files
Remove font-display settings
1 parent 9eedd13 commit 05a2212

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/librustdoc/html/static/rustdoc.css

-9
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,12 @@
33
font-family: 'Fira Sans';
44
font-style: normal;
55
font-weight: 400;
6-
font-display: optional;
76
src: local('Fira Sans'), url("FiraSans-Regular.woff") format('woff');
87
}
98
@font-face {
109
font-family: 'Fira Sans';
1110
font-style: normal;
1211
font-weight: 500;
13-
font-display: optional;
1412
src: local('Fira Sans Medium'), url("FiraSans-Medium.woff") format('woff');
1513
}
1614

@@ -19,23 +17,18 @@
1917
font-family: 'Source Serif Pro';
2018
font-style: normal;
2119
font-weight: 400;
22-
/* The difference for body text without this font is greater than other fonts,
23-
* so the 0~100ms block of fallback is preferred over optional, for legibility. */
24-
font-display: fallback;
2520
src: local('Source Serif Pro'), url("SourceSerifPro-Regular.ttf.woff") format('woff');
2621
}
2722
@font-face {
2823
font-family: 'Source Serif Pro';
2924
font-style: italic;
3025
font-weight: 400;
31-
font-display: optional;
3226
src: local('Source Serif Pro Italic'), url("SourceSerifPro-It.ttf.woff") format('woff');
3327
}
3428
@font-face {
3529
font-family: 'Source Serif Pro';
3630
font-style: normal;
3731
font-weight: 700;
38-
font-display: optional;
3932
src: local('Source Serif Pro Bold'), url("SourceSerifPro-Bold.ttf.woff") format('woff');
4033
}
4134

@@ -44,7 +37,6 @@
4437
font-family: 'Source Code Pro';
4538
font-style: normal;
4639
font-weight: 400;
47-
font-display: optional;
4840
/* Avoid using locally installed font because bad versions are in circulation:
4941
* see https://github.com/rust-lang/rust/issues/24355 */
5042
src: url("SourceCodePro-Regular.woff") format('woff');
@@ -53,7 +45,6 @@
5345
font-family: 'Source Code Pro';
5446
font-style: normal;
5547
font-weight: 600;
56-
font-display: optional;
5748
src: url("SourceCodePro-Semibold.woff") format('woff');
5849
}
5950

0 commit comments

Comments
 (0)