Skip to content

Commit 0bd9eef

Browse files
authored
Improve font support
1 parent 96f5c48 commit 0bd9eef

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed

fonts/fonts.css

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@
99
src: url('Inter/Inter-Regular.woff2') format('woff2');
1010
}
1111

12+
@font-face {
13+
font-family: 'Inter';
14+
font-style: italic;
15+
font-weight: 400;
16+
font-display: swap;
17+
src: url('Inter/Inter-Italic.woff2') format('woff2');
18+
}
19+
1220
@font-face {
1321
font-family: 'Inter';
1422
font-style: normal;
@@ -25,6 +33,14 @@
2533
src: url('Inter/Inter-SemiBold.woff2') format('woff2');
2634
}
2735

36+
@font-face {
37+
font-family: 'Inter';
38+
font-style: italic;
39+
font-weight: 600;
40+
font-display: swap;
41+
src: url('Inter/Inter-SemiBoldItalic.woff2') format('woff2');
42+
}
43+
2844
@font-face {
2945
font-family: 'Inter';
3046
font-style: normal;
@@ -44,6 +60,14 @@
4460
src: url('Mono-Sans/MonoSans-Regular.woff2') format('woff2');
4561
}
4662

63+
@font-face {
64+
font-family: 'Mono Sans';
65+
font-style: italic;
66+
font-weight: 400;
67+
font-display: swap;
68+
src: url('Mono-Sans/MonoSans-Italic.woff2') format('woff2');
69+
}
70+
4771
@font-face {
4872
font-family: 'Mono Sans';
4973
font-style: normal;
@@ -52,6 +76,14 @@
5276
src: url('Mono-Sans/MonoSans-Bold.woff2') format('woff2');
5377
}
5478

79+
@font-face {
80+
font-family: 'Mono Sans';
81+
font-style: italic;
82+
font-weight: 700;
83+
font-display: swap;
84+
src: url('Mono-Sans/MonoSans-BoldItalic.woff2') format('woff2');
85+
}
86+
5587

5688
/* Roboto Mono */
5789

@@ -63,3 +95,26 @@
6395
src: url('Roboto-Mono/RobotoMono-Regular.woff2') format('woff2');
6496
}
6597

98+
@font-face {
99+
font-family: 'Roboto Mono';
100+
font-style: italic;
101+
font-weight: 400;
102+
font-display: swap;
103+
src: url('Roboto-Mono/RobotoMono-Italic.woff2') format('woff2');
104+
}
105+
106+
@font-face {
107+
font-family: 'Roboto Mono';
108+
font-style: normal;
109+
font-weight: 700;
110+
font-display: swap;
111+
src: url('Roboto-Mono/RobotoMono-Bold.woff2') format('woff2');
112+
}
113+
114+
@font-face {
115+
font-family: 'Roboto Mono';
116+
font-style: italic;
117+
font-weight: 700;
118+
font-display: swap;
119+
src: url('Roboto-Mono/RobotoMono-BoldItalic.woff2') format('woff2');
120+
}

0 commit comments

Comments
 (0)