Skip to content

Commit

Permalink
Add Korean-friendly font (expressjs#1597)
Browse files Browse the repository at this point in the history
* Add Korean-friendly font

* Fix directory error

* Add alternative font
  • Loading branch information
rivercory authored Oct 21, 2024
1 parent 875b6c0 commit 50ec70c
Show file tree
Hide file tree
Showing 20 changed files with 75 additions and 0 deletions.
4 changes: 4 additions & 0 deletions css/ko.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
*/
/* For image callouts in writing-middleware.md */

@import url('../fonts/ko/Pretendard.css');

html, body {font-family: Pretendard, Arial, sans-serif;}

.callout {position: relative;}

#callout1 {top: 40px; }
Expand Down
71 changes: 71 additions & 0 deletions fonts/ko/pretendard.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
/*
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
*/

@font-face {
font-family: 'Pretendard';
font-weight: 900;
font-display: swap;
src: local('Pretendard Black'), url(./woff2/Pretendard-Black.woff2) format('woff2'), url(./woff/Pretendard-Black.woff) format('woff');
}

@font-face {
font-family: 'Pretendard';
font-weight: 800;
font-display: swap;
src: local('Pretendard ExtraBold'), url(./woff2/Pretendard-ExtraBold.woff2) format('woff2'), url(./woff/Pretendard-ExtraBold.woff) format('woff');
}

@font-face {
font-family: 'Pretendard';
font-weight: 700;
font-display: swap;
src: local('Pretendard Bold'), url(./woff2/Pretendard-Bold.woff2) format('woff2'), url(./woff/Pretendard-Bold.woff) format('woff');
}

@font-face {
font-family: 'Pretendard';
font-weight: 600;
font-display: swap;
src: local('Pretendard SemiBold'), url(./woff2/Pretendard-SemiBold.woff2) format('woff2'), url(./woff/Pretendard-SemiBold.woff) format('woff');
}

@font-face {
font-family: 'Pretendard';
font-weight: 500;
font-display: swap;
src: local('Pretendard Medium'), url(./woff2/Pretendard-Medium.woff2) format('woff2'), url(./woff/Pretendard-Medium.woff) format('woff');
}

@font-face {
font-family: 'Pretendard';
font-weight: 400;
font-display: swap;
src: local('Pretendard Regular'), url(./woff2/Pretendard-Regular.woff2) format('woff2'), url(./woff/Pretendard-Regular.woff) format('woff');
}

@font-face {
font-family: 'Pretendard';
font-weight: 300;
font-display: swap;
src: local('Pretendard Light'), url(./woff2/Pretendard-Light.woff2) format('woff2'), url(./woff/Pretendard-Light.woff) format('woff');
}

@font-face {
font-family: 'Pretendard';
font-weight: 200;
font-display: swap;
src: local('Pretendard ExtraLight'), url(./woff2/Pretendard-ExtraLight.woff2) format('woff2'), url(./woff/Pretendard-ExtraLight.woff) format('woff');
}

@font-face {
font-family: 'Pretendard';
font-weight: 100;
font-display: swap;
src: local('Pretendard Thin'), url(./woff2/Pretendard-Thin.woff2) format('woff2'), url(./woff/Pretendard-Thin.woff) format('woff');
}
Binary file added fonts/ko/woff/Pretendard-Black.woff
Binary file not shown.
Binary file added fonts/ko/woff/Pretendard-Bold.woff
Binary file not shown.
Binary file added fonts/ko/woff/Pretendard-ExtraBold.woff
Binary file not shown.
Binary file added fonts/ko/woff/Pretendard-ExtraLight.woff
Binary file not shown.
Binary file added fonts/ko/woff/Pretendard-Light.woff
Binary file not shown.
Binary file added fonts/ko/woff/Pretendard-Medium.woff
Binary file not shown.
Binary file added fonts/ko/woff/Pretendard-Regular.woff
Binary file not shown.
Binary file added fonts/ko/woff/Pretendard-SemiBold.woff
Binary file not shown.
Binary file added fonts/ko/woff/Pretendard-Thin.woff
Binary file not shown.
Binary file added fonts/ko/woff2/Pretendard-Black.woff2
Binary file not shown.
Binary file added fonts/ko/woff2/Pretendard-Bold.woff2
Binary file not shown.
Binary file added fonts/ko/woff2/Pretendard-ExtraBold.woff2
Binary file not shown.
Binary file added fonts/ko/woff2/Pretendard-ExtraLight.woff2
Binary file not shown.
Binary file added fonts/ko/woff2/Pretendard-Light.woff2
Binary file not shown.
Binary file added fonts/ko/woff2/Pretendard-Medium.woff2
Binary file not shown.
Binary file added fonts/ko/woff2/Pretendard-Regular.woff2
Binary file not shown.
Binary file added fonts/ko/woff2/Pretendard-SemiBold.woff2
Binary file not shown.
Binary file added fonts/ko/woff2/Pretendard-Thin.woff2
Binary file not shown.

0 comments on commit 50ec70c

Please sign in to comment.