-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from YAPP-Github/feat/YS-137
[YS-137] next/local/font 폰트 적용
- Loading branch information
Showing
7 changed files
with
44 additions
and
4 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import localFont from 'next/font/local'; | ||
|
||
/* | ||
Copyright (c) 2021 Kil Hyung-jin, with Reserved Font Name Pretendard. | ||
https://github.com/orioncactus/pretendard | ||
This Font Software is licensed under the SIL Open Font License, Version 1.1. | ||
This license is copied below, and is also available with a FAQ at: | ||
http://scripts.sil.org/OFL | ||
*/ | ||
|
||
const pretendard = localFont({ | ||
src: [ | ||
{ | ||
path: '../../public/fonts/Pretendard-Bold.subset.woff2', | ||
weight: '700', | ||
style: 'normal', | ||
}, | ||
{ | ||
path: '../../public/fonts/Pretendard-SemiBold.subset.woff2', | ||
weight: '600', | ||
style: 'normal', | ||
}, | ||
{ | ||
path: '../../public/fonts/Pretendard-Medium.subset.woff2', | ||
weight: '500', | ||
style: 'normal', | ||
}, | ||
{ | ||
path: '../../public/fonts/Pretendard-Regular.subset.woff2', | ||
weight: '400', | ||
style: 'normal', | ||
}, | ||
], | ||
variable: '--font-pretendard', | ||
}); | ||
|
||
export default pretendard; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters