Add bold mono font (#7815)

---------

Co-authored-by: Nicolas Ettlin <nicolas.ettlin@me.com>
This commit is contained in:
Ricky
2025-05-16 14:22:52 -04:00
committed by GitHub
parent 9fb051933b
commit 69ce5d36cc
4 changed files with 19 additions and 2 deletions

Binary file not shown.

View File

@@ -124,7 +124,14 @@ export const Seo = withRouter(
)}
<link
rel="preload"
href="/fonts/Source-Code-Pro-Regular.woff2"
href="https://react.dev/fonts/Source-Code-Pro-Regular.woff2"
as="font"
type="font/woff2"
crossOrigin="anonymous"
/>
<link
rel="preload"
href="https://react.dev/fonts/Source-Code-Pro-Bold.woff2"
as="font"
type="font/woff2"
crossOrigin="anonymous"

View File

@@ -12,7 +12,17 @@
font-style: normal;
font-weight: 400;
font-display: swap;
src: url('/fonts/Source-Code-Pro-Regular.woff2') format('woff2');
src: url('https://react.dev/fonts/Source-Code-Pro-Regular.woff2')
format('woff2');
}
@font-face {
font-family: 'Source Code Pro';
font-style: normal;
font-weight: 700;
font-display: swap;
src: url('https://react.dev/fonts/Source-Code-Pro-Bold.woff2')
format('woff2');
}
/* Latin */