Skip to content

Commit 284af3e

Browse files
fix(global.css): fix @font-face source
1 parent b6292a3 commit 284af3e

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

.storybook/preview-head.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@
77

88
</style>
99

10-
<link rel="preload" href="/fonts/inter/latin.woff2" as="font" type="font/woff2" crossorigin="anonymous" />
10+
<link rel="preload" href="/fonts/inter/latin.woff2" as="font" type="font/woff2" crossorigin="anonymous" />
11+
<link rel="preload" href="/fonts/ibm-plex-mono/IBMPlexMono-Regular.ttf" as="font" type="font/ttf" crossorigin="anonymous" />

src/styles/global.css

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -148,38 +148,38 @@
148148
font-family: 'IBM Plex Mono';
149149
font-style: normal;
150150
font-weight: 400;
151-
src: url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1iIq129k.woff2) format('woff2');
151+
src: url(/fonts/ibm-plex-mono/IBMPlexMono-Regular.ttf) format('truetype');
152152
unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
153153
}
154154
/* cyrillic */
155155
@font-face {
156156
font-family: 'IBM Plex Mono';
157157
font-style: normal;
158158
font-weight: 400;
159-
src: url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1isq129k.woff2) format('woff2');
159+
src: url(/fonts/ibm-plex-mono/IBMPlexMono-Regular.ttf) format('truetype');
160160
unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
161161
}
162162
/* vietnamese */
163163
@font-face {
164164
font-family: 'IBM Plex Mono';
165165
font-style: normal;
166166
font-weight: 400;
167-
src: url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1iAq129k.woff2) format('woff2');
167+
src: url(/fonts/ibm-plex-mono/IBMPlexMono-Regular.ttf) format('truetype');
168168
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
169169
}
170170
/* latin-ext */
171171
@font-face {
172172
font-family: 'IBM Plex Mono';
173173
font-style: normal;
174174
font-weight: 400;
175-
src: url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1iEq129k.woff2) format('woff2');
175+
src: url(/fonts/ibm-plex-mono/IBMPlexMono-Regular.ttf) format('truetype');
176176
unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
177177
}
178178
/* latin */
179179
@font-face {
180180
font-family: 'IBM Plex Mono';
181181
font-style: normal;
182182
font-weight: 400;
183-
src: url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1i8q1w.woff2) format('woff2');
183+
src: url(/fonts/ibm-plex-mono/IBMPlexMono-Regular.ttf) format('truetype');
184184
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
185185
}

0 commit comments

Comments
 (0)