Skip to content

Commit

Permalink
Merge pull request #115 from SOPT-all/fix/#114/font
Browse files Browse the repository at this point in the history
[FIX] 폰트 경로 변경
  • Loading branch information
bykbyk0401 authored Nov 30, 2024
2 parents 3c23e07 + 2bf8544 commit 8712ba2
Show file tree
Hide file tree
Showing 11 changed files with 23 additions and 6 deletions.
Binary file removed src/assets/fonts/AppleSDGothicNeo-Bold.ttf
Binary file not shown.
Binary file added src/assets/fonts/AppleSDGothicNeo-Bold.woff2
Binary file not shown.
Binary file removed src/assets/fonts/AppleSDGothicNeo-Medium.ttf
Binary file not shown.
Binary file added src/assets/fonts/AppleSDGothicNeo-Medium.woff2
Binary file not shown.
Binary file removed src/assets/fonts/AppleSDGothicNeo-Regular.ttf
Binary file not shown.
Binary file added src/assets/fonts/AppleSDGothicNeo-Regular.woff2
Binary file not shown.
Binary file removed src/assets/fonts/AppleSDGothicNeo-SemiBold.ttf
Binary file not shown.
Binary file added src/assets/fonts/AppleSDGothicNeo-SemiBold.woff2
Binary file not shown.
8 changes: 4 additions & 4 deletions src/styles/global.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const GLOBALSTYLE = css`
font-family: 'Apple SD Gothic Neo';
font-style: normal;
letter-spacing: 0;
src: url('/src/assets/fonts/AppleSDGothicNeo-Bold.ttf') format('truetype');
src: url('/src/assets/fonts/AppleSDGothicNeo-Bold.woff2') format('woff2');
unicode-range: U+AC00-D7A3;
}
Expand All @@ -20,7 +20,7 @@ const GLOBALSTYLE = css`
font-family: 'Apple SD Gothic Neo';
font-style: normal;
letter-spacing: 0;
src: url('/src/assets/fonts/AppleSDGothicNeo-SemiBold.ttf') format('truetype');
src: url('/src/assets/fonts/AppleSDGothicNeo-SemiBold.woff2') format('woff2');
unicode-range: U+AC00-D7A3;
}
Expand All @@ -29,7 +29,7 @@ const GLOBALSTYLE = css`
font-family: 'Apple SD Gothic Neo';
font-style: normal;
letter-spacing: 0;
src: url('/src/assets/fonts/AppleSDGothicNeo-Medium.ttf') format('truetype');
src: url('/src/assets/fonts/AppleSDGothicNeo-Medium.woff2') format('woff2');
unicode-range: U+AC00-D7A3;
}
Expand All @@ -38,7 +38,7 @@ const GLOBALSTYLE = css`
font-family: 'Apple SD Gothic Neo';
font-style: normal;
letter-spacing: 0;
src: url('/src/assets/fonts/AppleSDGothicNeo-Regular.ttf') format('truetype');
src: url('/src/assets/fonts/AppleSDGothicNeo-Regular.woff2') format('woff2');
unicode-range: U+AC00-D7A3;
}
Expand Down
19 changes: 18 additions & 1 deletion vercel.json
Original file line number Diff line number Diff line change
@@ -1 +1,18 @@
{ "rewrites": [{ "source": "/(.*)", "destination": "/" }] }
{
"rewrites": [{ "source": "/(.*)", "destination": "/" }],
"headers": [
{
"source": "/src/assets/fonts/(.*)",
"headers": [
{
"key": "Access-Control-Allow-Origin",
"value": "*"
},
{
"key": "Cache-Control",
"value": "public, max-age=31536000, immutable"
}
]
}
]
}
2 changes: 1 addition & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ export default defineConfig({
include: '**/*.svg',
}),
],
assetsInclude: ['**/*.ttf', '**/*.otf'],
assetsInclude: ['**/*.woff2', '**/*.otf'],
});

0 comments on commit 8712ba2

Please sign in to comment.