|
3 | 3 | font-family: 'Fira Sans'; |
4 | 4 | font-style: normal; |
5 | 5 | font-weight: 400; |
6 | | - font-display: optional; |
7 | 6 | src: local('Fira Sans'), url("FiraSans-Regular.woff") format('woff'); |
8 | 7 | } |
9 | 8 | @font-face { |
10 | 9 | font-family: 'Fira Sans'; |
11 | 10 | font-style: normal; |
12 | 11 | font-weight: 500; |
13 | | - font-display: optional; |
14 | 12 | src: local('Fira Sans Medium'), url("FiraSans-Medium.woff") format('woff'); |
15 | 13 | } |
16 | 14 |
|
|
19 | 17 | font-family: 'Source Serif Pro'; |
20 | 18 | font-style: normal; |
21 | 19 | 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; |
25 | 20 | src: local('Source Serif Pro'), url("SourceSerifPro-Regular.ttf.woff") format('woff'); |
26 | 21 | } |
27 | 22 | @font-face { |
28 | 23 | font-family: 'Source Serif Pro'; |
29 | 24 | font-style: italic; |
30 | 25 | font-weight: 400; |
31 | | - font-display: optional; |
32 | 26 | src: local('Source Serif Pro Italic'), url("SourceSerifPro-It.ttf.woff") format('woff'); |
33 | 27 | } |
34 | 28 | @font-face { |
35 | 29 | font-family: 'Source Serif Pro'; |
36 | 30 | font-style: normal; |
37 | 31 | font-weight: 700; |
38 | | - font-display: optional; |
39 | 32 | src: local('Source Serif Pro Bold'), url("SourceSerifPro-Bold.ttf.woff") format('woff'); |
40 | 33 | } |
41 | 34 |
|
|
44 | 37 | font-family: 'Source Code Pro'; |
45 | 38 | font-style: normal; |
46 | 39 | font-weight: 400; |
47 | | - font-display: optional; |
48 | 40 | /* Avoid using locally installed font because bad versions are in circulation: |
49 | 41 | * see https://github.com/rust-lang/rust/issues/24355 */ |
50 | 42 | src: url("SourceCodePro-Regular.woff") format('woff'); |
|
53 | 45 | font-family: 'Source Code Pro'; |
54 | 46 | font-style: normal; |
55 | 47 | font-weight: 600; |
56 | | - font-display: optional; |
57 | 48 | src: url("SourceCodePro-Semibold.woff") format('woff'); |
58 | 49 | } |
59 | 50 |
|
|
0 commit comments