Skip to content

Commit

Permalink
Use static font
Browse files Browse the repository at this point in the history
Reverts 4199903
  • Loading branch information
winterjung committed Jan 14, 2025
1 parent c0daffb commit dfed1db
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 17 deletions.
1 change: 0 additions & 1 deletion gatsby-browser.js
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
import "./static/fonts/pretendardvariable.css"
import "./static/theme/github-light.css"
8 changes: 8 additions & 0 deletions src/components/seo.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,14 @@ export default function Seo({ title, description, image }) {
<meta name="twitter:description" content={meta.description} />
<meta name="twitter:image" content={meta.image} />
<meta name="twitter:creator" content={twitterUsername} />

<link rel="preload" href="/fonts/pretendard.css" as="style" />
<link
rel="stylesheet"
href="/fonts/pretendard.css"
media="print"
onload="this.media='all'"
/>
</Helmet>
)
}
Expand Down
Binary file removed static/fonts/PretendardVariable.woff2
Binary file not shown.
6 changes: 6 additions & 0 deletions static/fonts/pretendard.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");

:root {
font-family: "Pretendard", "-apple-system", "BlinkMacSystemFont", "Segoe UI", "Noto Sans", "Helvetica", "Arial", "sans-serif", "Apple Color Emoji", "Segoe UI Emoji";
font-display: block;
}
16 changes: 0 additions & 16 deletions static/fonts/pretendardvariable.css

This file was deleted.

0 comments on commit dfed1db

Please sign in to comment.