Skip to content

Commit

Permalink
refactor: font loading
Browse files Browse the repository at this point in the history
  • Loading branch information
kcwww committed Apr 21, 2024
1 parent b6b096d commit c51d004
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions front/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/favicon.ico" />
<!-- font preload -->
<link
rel="preload"
href="/fonts/KingSejongInstitue-Regular.woff2"
as="font"
type="font/woff2"
crossorigin
/>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta property="og:title" content="스노우볼 속 내 마음" />
<meta property="og:url" content="https://mysnowball.kr" />
Expand Down
Binary file not shown.
Binary file not shown.
4 changes: 2 additions & 2 deletions front/src/GlobalStyles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ const GlobalStyles = createGlobalStyle`
@font-face {
font-family: 'KingSejongInstitute';
src: url('/fonts/KingSejongInstitute-Regular.ttf') format('woff2'),
url('/fonts/KingSejongInstitute-Regular.ttf') format('woff');
src: url('/fonts/KingSejongInstitute-Regular.woff2') format('woff2'),
url('/fonts/KingSejongInstitute-Regular.woff') format('woff');
font-weight: 400;
font-style: normal;
font-display: swap;
Expand Down

0 comments on commit c51d004

Please sign in to comment.