Skip to content

Commit f6fb193

Browse files
committed
Add a bold version of Source Code Pro
1 parent 740016e commit f6fb193

File tree

4 files changed

+15
-0
lines changed

4 files changed

+15
-0
lines changed
72.7 KB
Binary file not shown.
62.7 KB
Binary file not shown.

src/components/Seo.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,13 @@ export const Seo = withRouter(
129129
type="font/woff2"
130130
crossOrigin="anonymous"
131131
/>
132+
<link
133+
rel="preload"
134+
href="/fonts/Source-Code-Pro-Bold.woff2"
135+
as="font"
136+
type="font/woff2"
137+
crossOrigin="anonymous"
138+
/>
132139
<link
133140
rel="preload"
134141
href="https://react.dev/fonts/Optimistic_Display_W_Md.woff2"

src/styles/index.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,14 @@
1515
src: url('/fonts/Source-Code-Pro-Regular.woff2') format('woff2');
1616
}
1717

18+
@font-face {
19+
font-family: 'Source Code Pro';
20+
font-style: normal;
21+
font-weight: 700;
22+
font-display: swap;
23+
src: url('/fonts/Source-Code-Pro-Bold.woff2') format('woff2');
24+
}
25+
1826
/* Latin */
1927

2028
@font-face {

0 commit comments

Comments
 (0)