Skip to content

Commit

Permalink
에디터에 나눔바른고딕 및 KoPubWorld 돋움 폰트 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
devunt committed Jan 28, 2024
1 parent 7f57014 commit 23eae8e
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 1 deletion.
2 changes: 2 additions & 0 deletions apps/penxle.com/src/lib/tiptap/values.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ export const values = {

fontFamily: [
{ label: '프리텐다드', value: 'Pretendard' },
{ label: '나눔바른고딕', value: 'NanumBarunGothic' },
{ label: 'KoPubWorld 돋움', value: 'KoPubWorldDotum' },
{ label: '리디바탕', value: 'RIDIBatang' },
{ label: 'KoPubWorld 바탕', value: 'KoPubWorldBatang' },
{ label: '나눔명조', value: 'NanumMyeongjo' },
Expand Down
42 changes: 41 additions & 1 deletion apps/penxle.com/src/styles/fonts.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,38 @@
font-display: block;
}

@font-face {
font-family: 'PNXL_NanumBarunGothic';
src: url('https://pnxl.net/assets/fonts/NanumBarunGothic.woff2') format('woff2');
font-style: normal;
font-weight: 400;
font-display: block;
}

@font-face {
font-family: 'PNXL_NanumBarunGothic';
src: url('https://pnxl.net/assets/fonts/NanumBarunGothicBold.woff2') format('woff2');
font-style: normal;
font-weight: 700;
font-display: block;
}

@font-face {
font-family: 'PNXL_KoPubWorldDotum';
src: url('https://pnxl.net/assets/fonts/KoPubWorldDotumMedium.woff2') format('woff2');
font-style: normal;
font-weight: 400;
font-display: block;
}

@font-face {
font-family: 'PNXL_KoPubWorldDotum';
src: url('https://pnxl.net/assets/fonts/KoPubWorldDotumBold.woff2') format('woff2');
font-style: normal;
font-weight: 700;
font-display: block;
}

@font-face {
font-family: 'PNXL_RIDIBatang';
src: url('https://pnxl.net/assets/fonts/RIDIBatang.woff2') format('woff2-variations');
Expand All @@ -16,12 +48,20 @@

@font-face {
font-family: 'PNXL_KoPubWorldBatang';
src: url('https://pnxl.net/assets/fonts/KoPubWorldBatang.woff2') format('woff2');
src: url('https://pnxl.net/assets/fonts/KoPubWorldBatangMedium.woff2') format('woff2');
font-style: normal;
font-weight: 400;
font-display: block;
}

@font-face {
font-family: 'PNXL_KoPubWorldBatang';
src: url('https://pnxl.net/assets/fonts/KoPubWorldBatangBold.woff2') format('woff2');
font-style: normal;
font-weight: 700;
font-display: block;
}

@font-face {
font-family: 'PNXL_NanumMyeongjo';
src: url('https://pnxl.net/assets/fonts/NanumMyeongjo.woff2') format('woff2');
Expand Down
1 change: 1 addition & 0 deletions cspell.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"csvg",
"dopplerhq",
"dotenv",
"dotum",
"estree",
"estypes",
"exim",
Expand Down

0 comments on commit 23eae8e

Please sign in to comment.