diff --git a/fonts/other/pretendard-gov/100.css b/fonts/other/pretendard-gov/100.css new file mode 100644 index 00000000000..1066475af2c --- /dev/null +++ b/fonts/other/pretendard-gov/100.css @@ -0,0 +1,8 @@ +/* pretendard-gov-latin-100-normal */ +@font-face { + font-family: 'Pretendard GOV'; + font-style: normal; + font-display: swap; + font-weight: 100; + src: url(./files/pretendard-gov-latin-100-normal.woff2) format('woff2'), url(./files/pretendard-gov-latin-100-normal.woff) format('woff'); +} \ No newline at end of file diff --git a/fonts/other/pretendard-gov/200.css b/fonts/other/pretendard-gov/200.css new file mode 100644 index 00000000000..936ad5587a0 --- /dev/null +++ b/fonts/other/pretendard-gov/200.css @@ -0,0 +1,8 @@ +/* pretendard-gov-latin-200-normal */ +@font-face { + font-family: 'Pretendard GOV'; + font-style: normal; + font-display: swap; + font-weight: 200; + src: url(./files/pretendard-gov-latin-200-normal.woff2) format('woff2'), url(./files/pretendard-gov-latin-200-normal.woff) format('woff'); +} \ No newline at end of file diff --git a/fonts/other/pretendard-gov/300.css b/fonts/other/pretendard-gov/300.css new file mode 100644 index 00000000000..c601974cc5f --- /dev/null +++ b/fonts/other/pretendard-gov/300.css @@ -0,0 +1,8 @@ +/* pretendard-gov-latin-300-normal */ +@font-face { + font-family: 'Pretendard GOV'; + font-style: normal; + font-display: swap; + font-weight: 300; + src: url(./files/pretendard-gov-latin-300-normal.woff2) format('woff2'), url(./files/pretendard-gov-latin-300-normal.woff) format('woff'); +} \ No newline at end of file diff --git a/fonts/other/pretendard-gov/400.css b/fonts/other/pretendard-gov/400.css new file mode 100644 index 00000000000..ac25a7976b6 --- /dev/null +++ b/fonts/other/pretendard-gov/400.css @@ -0,0 +1,8 @@ +/* pretendard-gov-latin-400-normal */ +@font-face { + font-family: 'Pretendard GOV'; + font-style: normal; + font-display: swap; + font-weight: 400; + src: url(./files/pretendard-gov-latin-400-normal.woff2) format('woff2'), url(./files/pretendard-gov-latin-400-normal.woff) format('woff'); +} \ No newline at end of file diff --git a/fonts/other/pretendard-gov/500.css b/fonts/other/pretendard-gov/500.css new file mode 100644 index 00000000000..fb8ebdcf3f2 --- /dev/null +++ b/fonts/other/pretendard-gov/500.css @@ -0,0 +1,8 @@ +/* pretendard-gov-latin-500-normal */ +@font-face { + font-family: 'Pretendard GOV'; + font-style: normal; + font-display: swap; + font-weight: 500; + src: url(./files/pretendard-gov-latin-500-normal.woff2) format('woff2'), url(./files/pretendard-gov-latin-500-normal.woff) format('woff'); +} \ No newline at end of file diff --git a/fonts/other/pretendard-gov/600.css b/fonts/other/pretendard-gov/600.css new file mode 100644 index 00000000000..8fb410fb4ed --- /dev/null +++ b/fonts/other/pretendard-gov/600.css @@ -0,0 +1,8 @@ +/* pretendard-gov-latin-600-normal */ +@font-face { + font-family: 'Pretendard GOV'; + font-style: normal; + font-display: swap; + font-weight: 600; + src: url(./files/pretendard-gov-latin-600-normal.woff2) format('woff2'), url(./files/pretendard-gov-latin-600-normal.woff) format('woff'); +} \ No newline at end of file diff --git a/fonts/other/pretendard-gov/700.css b/fonts/other/pretendard-gov/700.css new file mode 100644 index 00000000000..c2262a4069e --- /dev/null +++ b/fonts/other/pretendard-gov/700.css @@ -0,0 +1,8 @@ +/* pretendard-gov-latin-700-normal */ +@font-face { + font-family: 'Pretendard GOV'; + font-style: normal; + font-display: swap; + font-weight: 700; + src: url(./files/pretendard-gov-latin-700-normal.woff2) format('woff2'), url(./files/pretendard-gov-latin-700-normal.woff) format('woff'); +} \ No newline at end of file diff --git a/fonts/other/pretendard-gov/800.css b/fonts/other/pretendard-gov/800.css new file mode 100644 index 00000000000..a7dcf71f335 --- /dev/null +++ b/fonts/other/pretendard-gov/800.css @@ -0,0 +1,8 @@ +/* pretendard-gov-latin-800-normal */ +@font-face { + font-family: 'Pretendard GOV'; + font-style: normal; + font-display: swap; + font-weight: 800; + src: url(./files/pretendard-gov-latin-800-normal.woff2) format('woff2'), url(./files/pretendard-gov-latin-800-normal.woff) format('woff'); +} \ No newline at end of file diff --git a/fonts/other/pretendard-gov/900.css b/fonts/other/pretendard-gov/900.css new file mode 100644 index 00000000000..4ee50af8b4c --- /dev/null +++ b/fonts/other/pretendard-gov/900.css @@ -0,0 +1,8 @@ +/* pretendard-gov-latin-900-normal */ +@font-face { + font-family: 'Pretendard GOV'; + font-style: normal; + font-display: swap; + font-weight: 900; + src: url(./files/pretendard-gov-latin-900-normal.woff2) format('woff2'), url(./files/pretendard-gov-latin-900-normal.woff) format('woff'); +} \ No newline at end of file diff --git a/fonts/other/pretendard-gov/CHANGELOG.md b/fonts/other/pretendard-gov/CHANGELOG.md new file mode 100644 index 00000000000..e798685bbf8 --- /dev/null +++ b/fonts/other/pretendard-gov/CHANGELOG.md @@ -0,0 +1,2 @@ +# Changelog +See the [Fontsource CHANGELOG.md](https://github.com/fontsource/fontsource/blob/main/CHANGELOG.md). \ No newline at end of file diff --git a/fonts/other/pretendard-gov/LICENSE b/fonts/other/pretendard-gov/LICENSE new file mode 100644 index 00000000000..160421b6039 --- /dev/null +++ b/fonts/other/pretendard-gov/LICENSE @@ -0,0 +1,104 @@ +Copyright (c) 2021, Kil Hyung-jin (https://github.com/orioncactus/pretendard), +with Reserved Font Name 'Pretendard'. + +Copyright 2014-2021 Adobe (http://www.adobe.com/), +with Reserved Font Name 'Source'. +Source is a trademark of Adobe in the United States and/or other countries. + +Copyright (c) 2016 The Inter Project Authors (https://github.com/rsms/inter), +with Reserved Font Name 'Inter'. + +Copyright 2021 The M+ FONTS Project Authors (https://github.com/coz-m/MPLUS_FONTS), +with Reserved Font Name 'M PLUS 1'. + +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: +https://scripts.sil.org/OFL + + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/fonts/other/pretendard-gov/README.md b/fonts/other/pretendard-gov/README.md new file mode 100644 index 00000000000..d5078ed9a5d --- /dev/null +++ b/fonts/other/pretendard-gov/README.md @@ -0,0 +1,47 @@ +# Fontsource Pretendard GOV + +[![npm (scoped)](https://img.shields.io/npm/v/@fontsource/pretendard-gov?color=brightgreen)](https://www.npmjs.com/package/@fontsource/pretendard-gov) [![Generic badge](https://img.shields.io/badge/fontsource-passing-brightgreen)](https://github.com/fontsource/fontsource) [![Monthly downloads](https://badgen.net/npm/dm/@fontsource/pretendard-gov)](https://github.com/fontsource/fontsource) [![Total downloads](https://badgen.net/npm/dt/@fontsource/pretendard-gov)](https://github.com/fontsource/fontsource) [![GitHub stars](https://img.shields.io/github/stars/fontsource/fontsource.svg?style=social&label=Star)](https://github.com/fontsource/fontsource/stargazers) + +The CSS and web font files to easily self-host the “Pretendard GOV” font. Please visit the main [Fontsource website](https://fontsource.org/fonts/pretendard-gov) to view more details on this package. + +## Quick Installation + +Fontsource offers multiple methods to import the CSS, including using a bundler like Vite or using SASS. You can find full documentation [here](https://fontsource.org/docs/getting-started/introduction). + +```javascript +npm install @fontsource/pretendard-gov +``` + +Within your app entry file or site component, import it in. + +```javascript +import "@fontsource/pretendard-gov"; // Defaults to weight 400 +import "@fontsource/pretendard-gov/400.css"; // Specify weight +import "@fontsource/pretendard-gov/400-italic.css"; // Specify weight and style +``` + +Supported variables: +- Weights: `[100,200,300,400,500,600,700,800,900]` +- Styles: `[normal]` +- Subsets: `[latin,latin-glyph]` + +> Note: `italic` may not be supported by all fonts. To learn more about what weights and styles are supported, please visit the [Fontsource website](https://fontsource.org/fonts/pretendard-gov). + +Finally, you can reference the font name in a CSS stylesheet, CSS Module, or CSS-in-JS. + +```css +body { + font-family: "Pretendard GOV"; +} +``` + +## Licensing +Always make sure to read the license for each font you use. Most of the fonts in the collection use the SIL Open Font License, v1.1. Some fonts use the Apache 2 license. The Ubuntu fonts use the Ubuntu Font License v1.0. + +2021 Kil Hyung-jin, 2014-2021 Adobe, 2016 The Inter Project Authors, 2021 The M+ FONTS Project Authors +[OFL-1.1](https://github.com/orioncactus/pretendard/blob/main/LICENSE) + +## Other Notes +Font version (provided by source): `v1.3.9`. + +If you have any suggestions or ideas to improve the performance of font loading or expand the existing library, feel free to star and contribute to this repository. You can share your suggestions or ideas by creating an [issue](https://github.com/fontsource/fontsource/issues). \ No newline at end of file diff --git a/fonts/other/pretendard-gov/files/pretendard-gov-latin-100-normal.woff b/fonts/other/pretendard-gov/files/pretendard-gov-latin-100-normal.woff new file mode 100644 index 00000000000..b804e83af42 Binary files /dev/null and b/fonts/other/pretendard-gov/files/pretendard-gov-latin-100-normal.woff differ diff --git a/fonts/other/pretendard-gov/files/pretendard-gov-latin-100-normal.woff2 b/fonts/other/pretendard-gov/files/pretendard-gov-latin-100-normal.woff2 new file mode 100644 index 00000000000..4874be887c5 Binary files /dev/null and b/fonts/other/pretendard-gov/files/pretendard-gov-latin-100-normal.woff2 differ diff --git a/fonts/other/pretendard-gov/files/pretendard-gov-latin-200-normal.woff b/fonts/other/pretendard-gov/files/pretendard-gov-latin-200-normal.woff new file mode 100644 index 00000000000..8504b9cd979 Binary files /dev/null and b/fonts/other/pretendard-gov/files/pretendard-gov-latin-200-normal.woff differ diff --git a/fonts/other/pretendard-gov/files/pretendard-gov-latin-200-normal.woff2 b/fonts/other/pretendard-gov/files/pretendard-gov-latin-200-normal.woff2 new file mode 100644 index 00000000000..5082cbbe3d8 Binary files /dev/null and b/fonts/other/pretendard-gov/files/pretendard-gov-latin-200-normal.woff2 differ diff --git a/fonts/other/pretendard-gov/files/pretendard-gov-latin-300-normal.woff b/fonts/other/pretendard-gov/files/pretendard-gov-latin-300-normal.woff new file mode 100644 index 00000000000..e6d0576fffe Binary files /dev/null and b/fonts/other/pretendard-gov/files/pretendard-gov-latin-300-normal.woff differ diff --git a/fonts/other/pretendard-gov/files/pretendard-gov-latin-300-normal.woff2 b/fonts/other/pretendard-gov/files/pretendard-gov-latin-300-normal.woff2 new file mode 100644 index 00000000000..faf78901ab5 Binary files /dev/null and b/fonts/other/pretendard-gov/files/pretendard-gov-latin-300-normal.woff2 differ diff --git a/fonts/other/pretendard-gov/files/pretendard-gov-latin-400-normal.woff b/fonts/other/pretendard-gov/files/pretendard-gov-latin-400-normal.woff new file mode 100644 index 00000000000..1e156b2e614 Binary files /dev/null and b/fonts/other/pretendard-gov/files/pretendard-gov-latin-400-normal.woff differ diff --git a/fonts/other/pretendard-gov/files/pretendard-gov-latin-400-normal.woff2 b/fonts/other/pretendard-gov/files/pretendard-gov-latin-400-normal.woff2 new file mode 100644 index 00000000000..4412fe4608b Binary files /dev/null and b/fonts/other/pretendard-gov/files/pretendard-gov-latin-400-normal.woff2 differ diff --git a/fonts/other/pretendard-gov/files/pretendard-gov-latin-500-normal.woff b/fonts/other/pretendard-gov/files/pretendard-gov-latin-500-normal.woff new file mode 100644 index 00000000000..d7d45cdfd55 Binary files /dev/null and b/fonts/other/pretendard-gov/files/pretendard-gov-latin-500-normal.woff differ diff --git a/fonts/other/pretendard-gov/files/pretendard-gov-latin-500-normal.woff2 b/fonts/other/pretendard-gov/files/pretendard-gov-latin-500-normal.woff2 new file mode 100644 index 00000000000..09629ae5d53 Binary files /dev/null and b/fonts/other/pretendard-gov/files/pretendard-gov-latin-500-normal.woff2 differ diff --git a/fonts/other/pretendard-gov/files/pretendard-gov-latin-600-normal.woff b/fonts/other/pretendard-gov/files/pretendard-gov-latin-600-normal.woff new file mode 100644 index 00000000000..9568e34f238 Binary files /dev/null and b/fonts/other/pretendard-gov/files/pretendard-gov-latin-600-normal.woff differ diff --git a/fonts/other/pretendard-gov/files/pretendard-gov-latin-600-normal.woff2 b/fonts/other/pretendard-gov/files/pretendard-gov-latin-600-normal.woff2 new file mode 100644 index 00000000000..1f345b4ab05 Binary files /dev/null and b/fonts/other/pretendard-gov/files/pretendard-gov-latin-600-normal.woff2 differ diff --git a/fonts/other/pretendard-gov/files/pretendard-gov-latin-700-normal.woff b/fonts/other/pretendard-gov/files/pretendard-gov-latin-700-normal.woff new file mode 100644 index 00000000000..fc2bd01dcc1 Binary files /dev/null and b/fonts/other/pretendard-gov/files/pretendard-gov-latin-700-normal.woff differ diff --git a/fonts/other/pretendard-gov/files/pretendard-gov-latin-700-normal.woff2 b/fonts/other/pretendard-gov/files/pretendard-gov-latin-700-normal.woff2 new file mode 100644 index 00000000000..563e924982b Binary files /dev/null and b/fonts/other/pretendard-gov/files/pretendard-gov-latin-700-normal.woff2 differ diff --git a/fonts/other/pretendard-gov/files/pretendard-gov-latin-800-normal.woff b/fonts/other/pretendard-gov/files/pretendard-gov-latin-800-normal.woff new file mode 100644 index 00000000000..72fa26a449d Binary files /dev/null and b/fonts/other/pretendard-gov/files/pretendard-gov-latin-800-normal.woff differ diff --git a/fonts/other/pretendard-gov/files/pretendard-gov-latin-800-normal.woff2 b/fonts/other/pretendard-gov/files/pretendard-gov-latin-800-normal.woff2 new file mode 100644 index 00000000000..6ea24217308 Binary files /dev/null and b/fonts/other/pretendard-gov/files/pretendard-gov-latin-800-normal.woff2 differ diff --git a/fonts/other/pretendard-gov/files/pretendard-gov-latin-900-normal.woff b/fonts/other/pretendard-gov/files/pretendard-gov-latin-900-normal.woff new file mode 100644 index 00000000000..cb3364b7111 Binary files /dev/null and b/fonts/other/pretendard-gov/files/pretendard-gov-latin-900-normal.woff differ diff --git a/fonts/other/pretendard-gov/files/pretendard-gov-latin-900-normal.woff2 b/fonts/other/pretendard-gov/files/pretendard-gov-latin-900-normal.woff2 new file mode 100644 index 00000000000..3a40d78f9d8 Binary files /dev/null and b/fonts/other/pretendard-gov/files/pretendard-gov-latin-900-normal.woff2 differ diff --git a/fonts/other/pretendard-gov/files/pretendard-gov-latin-glyph-100-normal.woff b/fonts/other/pretendard-gov/files/pretendard-gov-latin-glyph-100-normal.woff new file mode 100644 index 00000000000..829d07c9c18 Binary files /dev/null and b/fonts/other/pretendard-gov/files/pretendard-gov-latin-glyph-100-normal.woff differ diff --git a/fonts/other/pretendard-gov/files/pretendard-gov-latin-glyph-100-normal.woff2 b/fonts/other/pretendard-gov/files/pretendard-gov-latin-glyph-100-normal.woff2 new file mode 100644 index 00000000000..d4ef555feab Binary files /dev/null and b/fonts/other/pretendard-gov/files/pretendard-gov-latin-glyph-100-normal.woff2 differ diff --git a/fonts/other/pretendard-gov/files/pretendard-gov-latin-glyph-200-normal.woff b/fonts/other/pretendard-gov/files/pretendard-gov-latin-glyph-200-normal.woff new file mode 100644 index 00000000000..8615c262607 Binary files /dev/null and b/fonts/other/pretendard-gov/files/pretendard-gov-latin-glyph-200-normal.woff differ diff --git a/fonts/other/pretendard-gov/files/pretendard-gov-latin-glyph-200-normal.woff2 b/fonts/other/pretendard-gov/files/pretendard-gov-latin-glyph-200-normal.woff2 new file mode 100644 index 00000000000..0856874d6c5 Binary files /dev/null and b/fonts/other/pretendard-gov/files/pretendard-gov-latin-glyph-200-normal.woff2 differ diff --git a/fonts/other/pretendard-gov/files/pretendard-gov-latin-glyph-300-normal.woff b/fonts/other/pretendard-gov/files/pretendard-gov-latin-glyph-300-normal.woff new file mode 100644 index 00000000000..d62fb890b5f Binary files /dev/null and b/fonts/other/pretendard-gov/files/pretendard-gov-latin-glyph-300-normal.woff differ diff --git a/fonts/other/pretendard-gov/files/pretendard-gov-latin-glyph-300-normal.woff2 b/fonts/other/pretendard-gov/files/pretendard-gov-latin-glyph-300-normal.woff2 new file mode 100644 index 00000000000..852ee5eb17f Binary files /dev/null and b/fonts/other/pretendard-gov/files/pretendard-gov-latin-glyph-300-normal.woff2 differ diff --git a/fonts/other/pretendard-gov/files/pretendard-gov-latin-glyph-400-normal.woff b/fonts/other/pretendard-gov/files/pretendard-gov-latin-glyph-400-normal.woff new file mode 100644 index 00000000000..550efdd4e3c Binary files /dev/null and b/fonts/other/pretendard-gov/files/pretendard-gov-latin-glyph-400-normal.woff differ diff --git a/fonts/other/pretendard-gov/files/pretendard-gov-latin-glyph-400-normal.woff2 b/fonts/other/pretendard-gov/files/pretendard-gov-latin-glyph-400-normal.woff2 new file mode 100644 index 00000000000..5adc7447ae2 Binary files /dev/null and b/fonts/other/pretendard-gov/files/pretendard-gov-latin-glyph-400-normal.woff2 differ diff --git a/fonts/other/pretendard-gov/files/pretendard-gov-latin-glyph-500-normal.woff b/fonts/other/pretendard-gov/files/pretendard-gov-latin-glyph-500-normal.woff new file mode 100644 index 00000000000..e028c5c522e Binary files /dev/null and b/fonts/other/pretendard-gov/files/pretendard-gov-latin-glyph-500-normal.woff differ diff --git a/fonts/other/pretendard-gov/files/pretendard-gov-latin-glyph-500-normal.woff2 b/fonts/other/pretendard-gov/files/pretendard-gov-latin-glyph-500-normal.woff2 new file mode 100644 index 00000000000..ba735cc0193 Binary files /dev/null and b/fonts/other/pretendard-gov/files/pretendard-gov-latin-glyph-500-normal.woff2 differ diff --git a/fonts/other/pretendard-gov/files/pretendard-gov-latin-glyph-600-normal.woff b/fonts/other/pretendard-gov/files/pretendard-gov-latin-glyph-600-normal.woff new file mode 100644 index 00000000000..64011570f89 Binary files /dev/null and b/fonts/other/pretendard-gov/files/pretendard-gov-latin-glyph-600-normal.woff differ diff --git a/fonts/other/pretendard-gov/files/pretendard-gov-latin-glyph-600-normal.woff2 b/fonts/other/pretendard-gov/files/pretendard-gov-latin-glyph-600-normal.woff2 new file mode 100644 index 00000000000..173e00ba3f8 Binary files /dev/null and b/fonts/other/pretendard-gov/files/pretendard-gov-latin-glyph-600-normal.woff2 differ diff --git a/fonts/other/pretendard-gov/files/pretendard-gov-latin-glyph-700-normal.woff b/fonts/other/pretendard-gov/files/pretendard-gov-latin-glyph-700-normal.woff new file mode 100644 index 00000000000..8112a05c622 Binary files /dev/null and b/fonts/other/pretendard-gov/files/pretendard-gov-latin-glyph-700-normal.woff differ diff --git a/fonts/other/pretendard-gov/files/pretendard-gov-latin-glyph-700-normal.woff2 b/fonts/other/pretendard-gov/files/pretendard-gov-latin-glyph-700-normal.woff2 new file mode 100644 index 00000000000..925e6522a69 Binary files /dev/null and b/fonts/other/pretendard-gov/files/pretendard-gov-latin-glyph-700-normal.woff2 differ diff --git a/fonts/other/pretendard-gov/files/pretendard-gov-latin-glyph-800-normal.woff b/fonts/other/pretendard-gov/files/pretendard-gov-latin-glyph-800-normal.woff new file mode 100644 index 00000000000..8a53eb27f8f Binary files /dev/null and b/fonts/other/pretendard-gov/files/pretendard-gov-latin-glyph-800-normal.woff differ diff --git a/fonts/other/pretendard-gov/files/pretendard-gov-latin-glyph-800-normal.woff2 b/fonts/other/pretendard-gov/files/pretendard-gov-latin-glyph-800-normal.woff2 new file mode 100644 index 00000000000..bae6009c1f7 Binary files /dev/null and b/fonts/other/pretendard-gov/files/pretendard-gov-latin-glyph-800-normal.woff2 differ diff --git a/fonts/other/pretendard-gov/files/pretendard-gov-latin-glyph-900-normal.woff b/fonts/other/pretendard-gov/files/pretendard-gov-latin-glyph-900-normal.woff new file mode 100644 index 00000000000..ab4fb9f3a12 Binary files /dev/null and b/fonts/other/pretendard-gov/files/pretendard-gov-latin-glyph-900-normal.woff differ diff --git a/fonts/other/pretendard-gov/files/pretendard-gov-latin-glyph-900-normal.woff2 b/fonts/other/pretendard-gov/files/pretendard-gov-latin-glyph-900-normal.woff2 new file mode 100644 index 00000000000..1da4dfe3bc7 Binary files /dev/null and b/fonts/other/pretendard-gov/files/pretendard-gov-latin-glyph-900-normal.woff2 differ diff --git a/fonts/other/pretendard-gov/index.css b/fonts/other/pretendard-gov/index.css new file mode 100644 index 00000000000..ac25a7976b6 --- /dev/null +++ b/fonts/other/pretendard-gov/index.css @@ -0,0 +1,8 @@ +/* pretendard-gov-latin-400-normal */ +@font-face { + font-family: 'Pretendard GOV'; + font-style: normal; + font-display: swap; + font-weight: 400; + src: url(./files/pretendard-gov-latin-400-normal.woff2) format('woff2'), url(./files/pretendard-gov-latin-400-normal.woff) format('woff'); +} \ No newline at end of file diff --git a/fonts/other/pretendard-gov/latin-100.css b/fonts/other/pretendard-gov/latin-100.css new file mode 100644 index 00000000000..1066475af2c --- /dev/null +++ b/fonts/other/pretendard-gov/latin-100.css @@ -0,0 +1,8 @@ +/* pretendard-gov-latin-100-normal */ +@font-face { + font-family: 'Pretendard GOV'; + font-style: normal; + font-display: swap; + font-weight: 100; + src: url(./files/pretendard-gov-latin-100-normal.woff2) format('woff2'), url(./files/pretendard-gov-latin-100-normal.woff) format('woff'); +} \ No newline at end of file diff --git a/fonts/other/pretendard-gov/latin-200.css b/fonts/other/pretendard-gov/latin-200.css new file mode 100644 index 00000000000..936ad5587a0 --- /dev/null +++ b/fonts/other/pretendard-gov/latin-200.css @@ -0,0 +1,8 @@ +/* pretendard-gov-latin-200-normal */ +@font-face { + font-family: 'Pretendard GOV'; + font-style: normal; + font-display: swap; + font-weight: 200; + src: url(./files/pretendard-gov-latin-200-normal.woff2) format('woff2'), url(./files/pretendard-gov-latin-200-normal.woff) format('woff'); +} \ No newline at end of file diff --git a/fonts/other/pretendard-gov/latin-300.css b/fonts/other/pretendard-gov/latin-300.css new file mode 100644 index 00000000000..c601974cc5f --- /dev/null +++ b/fonts/other/pretendard-gov/latin-300.css @@ -0,0 +1,8 @@ +/* pretendard-gov-latin-300-normal */ +@font-face { + font-family: 'Pretendard GOV'; + font-style: normal; + font-display: swap; + font-weight: 300; + src: url(./files/pretendard-gov-latin-300-normal.woff2) format('woff2'), url(./files/pretendard-gov-latin-300-normal.woff) format('woff'); +} \ No newline at end of file diff --git a/fonts/other/pretendard-gov/latin-400.css b/fonts/other/pretendard-gov/latin-400.css new file mode 100644 index 00000000000..ac25a7976b6 --- /dev/null +++ b/fonts/other/pretendard-gov/latin-400.css @@ -0,0 +1,8 @@ +/* pretendard-gov-latin-400-normal */ +@font-face { + font-family: 'Pretendard GOV'; + font-style: normal; + font-display: swap; + font-weight: 400; + src: url(./files/pretendard-gov-latin-400-normal.woff2) format('woff2'), url(./files/pretendard-gov-latin-400-normal.woff) format('woff'); +} \ No newline at end of file diff --git a/fonts/other/pretendard-gov/latin-500.css b/fonts/other/pretendard-gov/latin-500.css new file mode 100644 index 00000000000..fb8ebdcf3f2 --- /dev/null +++ b/fonts/other/pretendard-gov/latin-500.css @@ -0,0 +1,8 @@ +/* pretendard-gov-latin-500-normal */ +@font-face { + font-family: 'Pretendard GOV'; + font-style: normal; + font-display: swap; + font-weight: 500; + src: url(./files/pretendard-gov-latin-500-normal.woff2) format('woff2'), url(./files/pretendard-gov-latin-500-normal.woff) format('woff'); +} \ No newline at end of file diff --git a/fonts/other/pretendard-gov/latin-600.css b/fonts/other/pretendard-gov/latin-600.css new file mode 100644 index 00000000000..8fb410fb4ed --- /dev/null +++ b/fonts/other/pretendard-gov/latin-600.css @@ -0,0 +1,8 @@ +/* pretendard-gov-latin-600-normal */ +@font-face { + font-family: 'Pretendard GOV'; + font-style: normal; + font-display: swap; + font-weight: 600; + src: url(./files/pretendard-gov-latin-600-normal.woff2) format('woff2'), url(./files/pretendard-gov-latin-600-normal.woff) format('woff'); +} \ No newline at end of file diff --git a/fonts/other/pretendard-gov/latin-700.css b/fonts/other/pretendard-gov/latin-700.css new file mode 100644 index 00000000000..c2262a4069e --- /dev/null +++ b/fonts/other/pretendard-gov/latin-700.css @@ -0,0 +1,8 @@ +/* pretendard-gov-latin-700-normal */ +@font-face { + font-family: 'Pretendard GOV'; + font-style: normal; + font-display: swap; + font-weight: 700; + src: url(./files/pretendard-gov-latin-700-normal.woff2) format('woff2'), url(./files/pretendard-gov-latin-700-normal.woff) format('woff'); +} \ No newline at end of file diff --git a/fonts/other/pretendard-gov/latin-800.css b/fonts/other/pretendard-gov/latin-800.css new file mode 100644 index 00000000000..a7dcf71f335 --- /dev/null +++ b/fonts/other/pretendard-gov/latin-800.css @@ -0,0 +1,8 @@ +/* pretendard-gov-latin-800-normal */ +@font-face { + font-family: 'Pretendard GOV'; + font-style: normal; + font-display: swap; + font-weight: 800; + src: url(./files/pretendard-gov-latin-800-normal.woff2) format('woff2'), url(./files/pretendard-gov-latin-800-normal.woff) format('woff'); +} \ No newline at end of file diff --git a/fonts/other/pretendard-gov/latin-900.css b/fonts/other/pretendard-gov/latin-900.css new file mode 100644 index 00000000000..4ee50af8b4c --- /dev/null +++ b/fonts/other/pretendard-gov/latin-900.css @@ -0,0 +1,8 @@ +/* pretendard-gov-latin-900-normal */ +@font-face { + font-family: 'Pretendard GOV'; + font-style: normal; + font-display: swap; + font-weight: 900; + src: url(./files/pretendard-gov-latin-900-normal.woff2) format('woff2'), url(./files/pretendard-gov-latin-900-normal.woff) format('woff'); +} \ No newline at end of file diff --git a/fonts/other/pretendard-gov/latin-glyph-100.css b/fonts/other/pretendard-gov/latin-glyph-100.css new file mode 100644 index 00000000000..5740621e4c5 --- /dev/null +++ b/fonts/other/pretendard-gov/latin-glyph-100.css @@ -0,0 +1,10 @@ +/* pretendard-gov-latin-glyph-100-normal */ +@font-face { + font-family: "Pretendard GOV"; + font-style: normal; + font-display: swap; + font-weight: 100; + src: + url(./files/pretendard-gov-latin-glyph-100-normal.woff2) format("woff2"), + url(./files/pretendard-gov-latin-glyph-100-normal.woff) format("woff"); +} diff --git a/fonts/other/pretendard-gov/latin-glyph-200.css b/fonts/other/pretendard-gov/latin-glyph-200.css new file mode 100644 index 00000000000..50b2db57151 --- /dev/null +++ b/fonts/other/pretendard-gov/latin-glyph-200.css @@ -0,0 +1,10 @@ +/* pretendard-gov-latin-glyph-200-normal */ +@font-face { + font-family: "Pretendard GOV"; + font-style: normal; + font-display: swap; + font-weight: 200; + src: + url(./files/pretendard-gov-latin-glyph-200-normal.woff2) format("woff2"), + url(./files/pretendard-gov-latin-glyph-200-normal.woff) format("woff"); +} diff --git a/fonts/other/pretendard-gov/latin-glyph-300.css b/fonts/other/pretendard-gov/latin-glyph-300.css new file mode 100644 index 00000000000..7c5d5b8c473 --- /dev/null +++ b/fonts/other/pretendard-gov/latin-glyph-300.css @@ -0,0 +1,10 @@ +/* pretendard-gov-latin-glyph-300-normal */ +@font-face { + font-family: "Pretendard GOV"; + font-style: normal; + font-display: swap; + font-weight: 300; + src: + url(./files/pretendard-gov-latin-glyph-300-normal.woff2) format("woff2"), + url(./files/pretendard-gov-latin-glyph-300-normal.woff) format("woff"); +} diff --git a/fonts/other/pretendard-gov/latin-glyph-400.css b/fonts/other/pretendard-gov/latin-glyph-400.css new file mode 100644 index 00000000000..6155bc79933 --- /dev/null +++ b/fonts/other/pretendard-gov/latin-glyph-400.css @@ -0,0 +1,10 @@ +/* pretendard-gov-latin-glyph-400-normal */ +@font-face { + font-family: "Pretendard GOV"; + font-style: normal; + font-display: swap; + font-weight: 400; + src: + url(./files/pretendard-gov-latin-glyph-400-normal.woff2) format("woff2"), + url(./files/pretendard-gov-latin-glyph-400-normal.woff) format("woff"); +} diff --git a/fonts/other/pretendard-gov/latin-glyph-500.css b/fonts/other/pretendard-gov/latin-glyph-500.css new file mode 100644 index 00000000000..50ee729c072 --- /dev/null +++ b/fonts/other/pretendard-gov/latin-glyph-500.css @@ -0,0 +1,10 @@ +/* pretendard-gov-latin-glyph-500-normal */ +@font-face { + font-family: "Pretendard GOV"; + font-style: normal; + font-display: swap; + font-weight: 500; + src: + url(./files/pretendard-gov-latin-glyph-500-normal.woff2) format("woff2"), + url(./files/pretendard-gov-latin-glyph-500-normal.woff) format("woff"); +} diff --git a/fonts/other/pretendard-gov/latin-glyph-600.css b/fonts/other/pretendard-gov/latin-glyph-600.css new file mode 100644 index 00000000000..968077086db --- /dev/null +++ b/fonts/other/pretendard-gov/latin-glyph-600.css @@ -0,0 +1,10 @@ +/* pretendard-gov-latin-glyph-600-normal */ +@font-face { + font-family: "Pretendard GOV"; + font-style: normal; + font-display: swap; + font-weight: 600; + src: + url(./files/pretendard-gov-latin-glyph-600-normal.woff2) format("woff2"), + url(./files/pretendard-gov-latin-glyph-600-normal.woff) format("woff"); +} diff --git a/fonts/other/pretendard-gov/latin-glyph-700.css b/fonts/other/pretendard-gov/latin-glyph-700.css new file mode 100644 index 00000000000..513ffc48660 --- /dev/null +++ b/fonts/other/pretendard-gov/latin-glyph-700.css @@ -0,0 +1,10 @@ +/* pretendard-gov-latin-glyph-700-normal */ +@font-face { + font-family: "Pretendard GOV"; + font-style: normal; + font-display: swap; + font-weight: 700; + src: + url(./files/pretendard-gov-latin-glyph-700-normal.woff2) format("woff2"), + url(./files/pretendard-gov-latin-glyph-700-normal.woff) format("woff"); +} diff --git a/fonts/other/pretendard-gov/latin-glyph-800.css b/fonts/other/pretendard-gov/latin-glyph-800.css new file mode 100644 index 00000000000..3cd56268ebf --- /dev/null +++ b/fonts/other/pretendard-gov/latin-glyph-800.css @@ -0,0 +1,10 @@ +/* pretendard-gov-latin-glyph-800-normal */ +@font-face { + font-family: "Pretendard GOV"; + font-style: normal; + font-display: swap; + font-weight: 800; + src: + url(./files/pretendard-gov-latin-glyph-800-normal.woff2) format("woff2"), + url(./files/pretendard-gov-latin-glyph-800-normal.woff) format("woff"); +} diff --git a/fonts/other/pretendard-gov/latin-glyph-900.css b/fonts/other/pretendard-gov/latin-glyph-900.css new file mode 100644 index 00000000000..962c63f2031 --- /dev/null +++ b/fonts/other/pretendard-gov/latin-glyph-900.css @@ -0,0 +1,10 @@ +/* pretendard-gov-latin-glyph-900-normal */ +@font-face { + font-family: "Pretendard GOV"; + font-style: normal; + font-display: swap; + font-weight: 900; + src: + url(./files/pretendard-gov-latin-glyph-900-normal.woff2) format("woff2"), + url(./files/pretendard-gov-latin-glyph-900-normal.woff) format("woff"); +} diff --git a/fonts/other/pretendard-gov/latin-glyph.css b/fonts/other/pretendard-gov/latin-glyph.css new file mode 100644 index 00000000000..9ebc22d961f --- /dev/null +++ b/fonts/other/pretendard-gov/latin-glyph.css @@ -0,0 +1,98 @@ +/* pretendard-gov-latin-glyph-100-normal */ +@font-face { + font-family: "Pretendard GOV"; + font-style: normal; + font-display: swap; + font-weight: 100; + src: + url(./files/pretendard-gov-latin-glyph-100-normal.woff2) format("woff2"), + url(./files/pretendard-gov-latin-glyph-100-normal.woff) format("woff"); +} + +/* pretendard-gov-latin-glyph-200-normal */ +@font-face { + font-family: "Pretendard GOV"; + font-style: normal; + font-display: swap; + font-weight: 200; + src: + url(./files/pretendard-gov-latin-glyph-200-normal.woff2) format("woff2"), + url(./files/pretendard-gov-latin-glyph-200-normal.woff) format("woff"); +} + +/* pretendard-gov-latin-glyph-300-normal */ +@font-face { + font-family: "Pretendard GOV"; + font-style: normal; + font-display: swap; + font-weight: 300; + src: + url(./files/pretendard-gov-latin-glyph-300-normal.woff2) format("woff2"), + url(./files/pretendard-gov-latin-glyph-300-normal.woff) format("woff"); +} + +/* pretendard-gov-latin-glyph-400-normal */ +@font-face { + font-family: "Pretendard GOV"; + font-style: normal; + font-display: swap; + font-weight: 400; + src: + url(./files/pretendard-gov-latin-glyph-400-normal.woff2) format("woff2"), + url(./files/pretendard-gov-latin-glyph-400-normal.woff) format("woff"); +} + +/* pretendard-gov-latin-glyph-500-normal */ +@font-face { + font-family: "Pretendard GOV"; + font-style: normal; + font-display: swap; + font-weight: 500; + src: + url(./files/pretendard-gov-latin-glyph-500-normal.woff2) format("woff2"), + url(./files/pretendard-gov-latin-glyph-500-normal.woff) format("woff"); +} + +/* pretendard-gov-latin-glyph-600-normal */ +@font-face { + font-family: "Pretendard GOV"; + font-style: normal; + font-display: swap; + font-weight: 600; + src: + url(./files/pretendard-gov-latin-glyph-600-normal.woff2) format("woff2"), + url(./files/pretendard-gov-latin-glyph-600-normal.woff) format("woff"); +} + +/* pretendard-gov-latin-glyph-700-normal */ +@font-face { + font-family: "Pretendard GOV"; + font-style: normal; + font-display: swap; + font-weight: 700; + src: + url(./files/pretendard-gov-latin-glyph-700-normal.woff2) format("woff2"), + url(./files/pretendard-gov-latin-glyph-700-normal.woff) format("woff"); +} + +/* pretendard-gov-latin-glyph-800-normal */ +@font-face { + font-family: "Pretendard GOV"; + font-style: normal; + font-display: swap; + font-weight: 800; + src: + url(./files/pretendard-gov-latin-glyph-800-normal.woff2) format("woff2"), + url(./files/pretendard-gov-latin-glyph-800-normal.woff) format("woff"); +} + +/* pretendard-gov-latin-glyph-900-normal */ +@font-face { + font-family: "Pretendard GOV"; + font-style: normal; + font-display: swap; + font-weight: 900; + src: + url(./files/pretendard-gov-latin-glyph-900-normal.woff2) format("woff2"), + url(./files/pretendard-gov-latin-glyph-900-normal.woff) format("woff"); +} diff --git a/fonts/other/pretendard-gov/latin.css b/fonts/other/pretendard-gov/latin.css new file mode 100644 index 00000000000..a5150fb06b0 --- /dev/null +++ b/fonts/other/pretendard-gov/latin.css @@ -0,0 +1,80 @@ +/* pretendard-gov-latin-100-normal */ +@font-face { + font-family: 'Pretendard GOV'; + font-style: normal; + font-display: swap; + font-weight: 100; + src: url(./files/pretendard-gov-latin-100-normal.woff2) format('woff2'), url(./files/pretendard-gov-latin-100-normal.woff) format('woff'); +} + +/* pretendard-gov-latin-200-normal */ +@font-face { + font-family: 'Pretendard GOV'; + font-style: normal; + font-display: swap; + font-weight: 200; + src: url(./files/pretendard-gov-latin-200-normal.woff2) format('woff2'), url(./files/pretendard-gov-latin-200-normal.woff) format('woff'); +} + +/* pretendard-gov-latin-300-normal */ +@font-face { + font-family: 'Pretendard GOV'; + font-style: normal; + font-display: swap; + font-weight: 300; + src: url(./files/pretendard-gov-latin-300-normal.woff2) format('woff2'), url(./files/pretendard-gov-latin-300-normal.woff) format('woff'); +} + +/* pretendard-gov-latin-400-normal */ +@font-face { + font-family: 'Pretendard GOV'; + font-style: normal; + font-display: swap; + font-weight: 400; + src: url(./files/pretendard-gov-latin-400-normal.woff2) format('woff2'), url(./files/pretendard-gov-latin-400-normal.woff) format('woff'); +} + +/* pretendard-gov-latin-500-normal */ +@font-face { + font-family: 'Pretendard GOV'; + font-style: normal; + font-display: swap; + font-weight: 500; + src: url(./files/pretendard-gov-latin-500-normal.woff2) format('woff2'), url(./files/pretendard-gov-latin-500-normal.woff) format('woff'); +} + +/* pretendard-gov-latin-600-normal */ +@font-face { + font-family: 'Pretendard GOV'; + font-style: normal; + font-display: swap; + font-weight: 600; + src: url(./files/pretendard-gov-latin-600-normal.woff2) format('woff2'), url(./files/pretendard-gov-latin-600-normal.woff) format('woff'); +} + +/* pretendard-gov-latin-700-normal */ +@font-face { + font-family: 'Pretendard GOV'; + font-style: normal; + font-display: swap; + font-weight: 700; + src: url(./files/pretendard-gov-latin-700-normal.woff2) format('woff2'), url(./files/pretendard-gov-latin-700-normal.woff) format('woff'); +} + +/* pretendard-gov-latin-800-normal */ +@font-face { + font-family: 'Pretendard GOV'; + font-style: normal; + font-display: swap; + font-weight: 800; + src: url(./files/pretendard-gov-latin-800-normal.woff2) format('woff2'), url(./files/pretendard-gov-latin-800-normal.woff) format('woff'); +} + +/* pretendard-gov-latin-900-normal */ +@font-face { + font-family: 'Pretendard GOV'; + font-style: normal; + font-display: swap; + font-weight: 900; + src: url(./files/pretendard-gov-latin-900-normal.woff2) format('woff2'), url(./files/pretendard-gov-latin-900-normal.woff) format('woff'); +} \ No newline at end of file diff --git a/fonts/other/pretendard-gov/metadata.json b/fonts/other/pretendard-gov/metadata.json new file mode 100644 index 00000000000..7d7dd1f7c1a --- /dev/null +++ b/fonts/other/pretendard-gov/metadata.json @@ -0,0 +1,19 @@ +{ + "id": "pretendard-gov", + "family": "Pretendard GOV", + "subsets": ["latin", "latin-glyph"], + "weights": [100, 200, 300, 400, 500, 600, 700, 800, 900], + "styles": ["normal"], + "defSubset": "latin", + "variable": false, + "lastModified": "2026-04-22", + "version": "v1.3.9", + "category": "sans-serif", + "license": { + "type": "OFL-1.1", + "url": "https://github.com/orioncactus/pretendard/blob/main/LICENSE", + "attribution": "2021 Kil Hyung-jin, 2014-2021 Adobe, 2016 The Inter Project Authors, 2021 The M+ FONTS Project Authors" + }, + "source": "https://github.com/orioncactus/pretendard", + "type": "other" +} \ No newline at end of file diff --git a/fonts/other/pretendard-gov/package.json b/fonts/other/pretendard-gov/package.json new file mode 100644 index 00000000000..39d62ffafe0 --- /dev/null +++ b/fonts/other/pretendard-gov/package.json @@ -0,0 +1,46 @@ +{ + "name": "@fontsource/pretendard-gov", + "version": "5.2.0", + "description": "Self-host the Pretendard GOV font in a neatly bundled NPM package.", + "main": "index.css", + "publishConfig": {"access": "public"}, + "keywords": [ + "fontsource", + "font", + "font family", + "google fonts", + "pretendard-gov", + "Pretendard GOV", + "css", + "sass", + "front-end", + "web", + "typeface", + "variable" + ], + "exports": { + ".": {"sass": "./index.css", "default": "./index.css"}, + "./LICENSE": "./LICENSE", + "./*": {"sass": "./*.css", "default": "./*.css"}, + "./*.css": {"sass": "./*.css", "default": "./*.css"}, + "./files/*": {"sass": "./files/*", "default": "./files/*"}, + "./files/*.woff": {"sass": "./files/*.woff", "default": "./files/*.woff"}, + "./files/*.woff2": { + "sass": "./files/*.woff2", + "default": "./files/*.woff2" + }, + "./package.json": "./package.json", + "./metadata.json": "./metadata.json", + "./unicode.json": "./unicode.json", + "./scss": {"sass": "./scss/metadata.scss"} + }, + "author": "2021 Kil Hyung-jin, 2014-2021 Adobe, 2016 The Inter Project Authors, 2021 The M+ FONTS Project Authors", + "license": "OFL-1.1", + "homepage": "https://fontsource.org/fonts/pretendard-gov", + "funding": "https://github.com/sponsors/ayuhito", + "repository": { + "type": "git", + "url": "git+https://github.com/fontsource/font-files.git", + "directory": "fonts/other/pretendard-gov" + } +} \ No newline at end of file diff --git a/fonts/other/pretendard-gov/scss/metadata.scss b/fonts/other/pretendard-gov/scss/metadata.scss new file mode 100644 index 00000000000..faaca891f73 --- /dev/null +++ b/fonts/other/pretendard-gov/scss/metadata.scss @@ -0,0 +1,26 @@ +$id: 'pretendard-gov'; +$family: 'Pretendard GOV'; +$category: sans-serif; +$subsets: (latin, latin-glyph); +$weights: (100, 200, 300, 400, 500, 600, 700, 800, 900); +$styles: (normal); +$axes: null; +$defaults: ( + subset: latin, + weight: 400, + style: normal, + axis: null, +); +$unicode: null; + +$metadata: ( + id: $id, + family: $family, + category: $category, + subsets: $subsets, + weights: $weights, + styles: $styles, + axes: $axes, + defaults: $defaults, + unicode: $unicode, +) !default; \ No newline at end of file diff --git a/fonts/other/pretendard-gov/scss/mixins.scss b/fonts/other/pretendard-gov/scss/mixins.scss new file mode 100644 index 00000000000..8388db5ae63 --- /dev/null +++ b/fonts/other/pretendard-gov/scss/mixins.scss @@ -0,0 +1,193 @@ +@use 'sass:list'; +@use 'sass:map'; +@use 'sass:math'; +@use 'sass:meta'; +@use 'sass:string'; + +@use 'metadata'; + +$metadata: metadata.$metadata !default; +$directory: null !default; + +$family: null !default; +$display: null !default; +$formats: null !default; +$subsets: null !default; +$weights: null !default; +$styles: null !default; +$axes: null !default; + +// Deprecated +$displayVar: null !default; + +@mixin generator( + $metadata: $metadata, + $directory: $directory, + $family: $family, + $display: $display, + $formats: $formats, + $subsets: $subsets, + $weights: $weights, + $styles: $styles, + $axes: $axes, + + // Deprecated + $displayVar: $displayVar +) { + @warn "Importing mixins via the fontsource package is deprecated and will be removed in the next major release. Please use the @fontsource-utils/scss package instead."; + + @if $displayVar != null { + @warn "$displayVar is deprecated due to the limitation of using css variables in @font-face (https://github.com/fontsource/fontsource/issues/726)."; + } + + $isVariable: map.get($metadata, axes) != null; + + $directory: if( + $directory, + $directory, + '~@fontsource#{if($isVariable, '-variable', '')}/#{map.get($metadata, id)}/files' + ); + + $family: if($family, $family, map.get($metadata, family) + if($isVariable, ' Variable', '')); + $display: if($display, $display, swap); + $formats: if(not $formats or $formats == all, if($isVariable, woff2, (woff2, woff)), $formats); + $subsets: if( + $subsets, + if($subsets == all, map.get($metadata, subsets), $subsets), + map.get($metadata, subsets) + ); + $weights: if( + $weights, + if($weights == all, map.get($metadata, weights), $weights), + map.get($metadata, defaults, weight) + ); + $styles: if( + $styles, + if($styles == all, map.get($metadata, styles), $styles), + map.get($metadata, defaults, style) + ); + $axes: if( + $axes, + if($axes == all, full, $axes), + if($isVariable, if(map.has-key($metadata, axes, wght), wght, full), null) + ); + + @each $subset in $subsets { + @each $unicodeSubset, $unicodeRange in map.get($metadata, unicode) { + // If condition is true, generate faces for the current subset + @if ( + // If there is no unicode information for the font or + ($unicodeSubset == null) or + // If the subset match a unicode subset or + ($subset == $unicodeSubset) or + ( + // If $unicodeSubset is a numeric unicode subset + // and current subset exists in the list of font subsets but does not match any unicode subset + // then generate faces for this numeric unicode subset as it is representing part of the current subset + list.index(map.get($metadata, subsets), $subset) and not + map.has-key($metadata, unicode, $subset) and not + list.index(map.get($metadata, subsets), $unicodeSubset) + ) + ) { + @each $weight in if($axes, null, $weights) { + @each $axis in $axes { + @each $style in $styles { + $variant: '#{map.get($metadata, id)}-#{if($unicodeSubset, $unicodeSubset, $subset)}-#{if($axis, $axis, $weight)}-#{$style}'; + + $src: (); + @each $format in $formats { + $src: list.append( + $src, + url('#{$directory}/#{$variant}.#{$format}') + format('#{$format}#{if($axis, '-variations', '')}'), + comma + ); + } + + @content (( + metadata: $metadata, + directory: $directory, + family: $family, + display: $display, + formats: $formats, + subsets: $subsets, + weights: $weights, + styles: $styles, + axes: $axes, + + variant: $variant, + subset: $subset, + unicodeSubset: $unicodeSubset, + unicodeRange: $unicodeRange, + weight: $weight, + axis: $axis, + style: $style, + + font-family: string.quote($family), + font-style: if( + (($axis == full) or ($axis == slnt)) and map.has-key($metadata, axes, slnt), + oblique map.get($metadata, axes, slnt, min) + deg map.get($metadata, axes, slnt, max) + deg, + $style + ), + font-display: $display, + font-weight: if( + (($axis == full) or ($axis == wght)) and map.has-key($metadata, axes, wght), + map.get($metadata, axes, wght, min) map.get($metadata, axes, wght, max), + $weight + ), + font-stretch: if( + (($axis == full) or ($axis == wdth)) and map.has-key($metadata, axes, wdth), + '#{map.get($metadata, axes, wdth, min)}% #{map.get($metadata, axes, wdth, max)}%', + null + ), + src: $src, + unicode-range: $unicodeRange, + )); + } + } + } + } + } + } +} + +@mixin faces( + $metadata: $metadata, + $directory: $directory, + $family: $family, + $display: $display, + $formats: $formats, + $subsets: $subsets, + $weights: $weights, + $styles: $styles, + $axes: $axes, + + // Deprecated + $displayVar: $displayVar +) { + @include generator( + $metadata: $metadata, + $directory: $directory, + $family: $family, + $display: $display, + $formats: $formats, + $subsets: $subsets, + $weights: $weights, + $styles: $styles, + $axes: $axes, + + $displayVar: $displayVar + ) + using ($props) { + /* #{map.get($props, variant)} */ + @font-face { + font-family: map.get($props, font-family); + font-style: map.get($props, font-style); + font-display: map.get($props, font-display); + font-weight: map.get($props, font-weight); + font-stretch: map.get($props, font-stretch); + unicode-range: map.get($props, unicode-range); + src: map.get($props, src); + } + } +} diff --git a/fonts/other/pretendard-gov/unicode.json b/fonts/other/pretendard-gov/unicode.json new file mode 100644 index 00000000000..9e26dfeeb6e --- /dev/null +++ b/fonts/other/pretendard-gov/unicode.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/fonts/other/pretendard-jp/100.css b/fonts/other/pretendard-jp/100.css new file mode 100644 index 00000000000..1b191788e34 --- /dev/null +++ b/fonts/other/pretendard-jp/100.css @@ -0,0 +1,8 @@ +/* pretendard-jp-latin-100-normal */ +@font-face { + font-family: 'Pretendard JP'; + font-style: normal; + font-display: swap; + font-weight: 100; + src: url(./files/pretendard-jp-latin-100-normal.woff2) format('woff2'), url(./files/pretendard-jp-latin-100-normal.woff) format('woff'); +} \ No newline at end of file diff --git a/fonts/other/pretendard-jp/200.css b/fonts/other/pretendard-jp/200.css new file mode 100644 index 00000000000..bb71ac50ebf --- /dev/null +++ b/fonts/other/pretendard-jp/200.css @@ -0,0 +1,8 @@ +/* pretendard-jp-latin-200-normal */ +@font-face { + font-family: 'Pretendard JP'; + font-style: normal; + font-display: swap; + font-weight: 200; + src: url(./files/pretendard-jp-latin-200-normal.woff2) format('woff2'), url(./files/pretendard-jp-latin-200-normal.woff) format('woff'); +} \ No newline at end of file diff --git a/fonts/other/pretendard-jp/300.css b/fonts/other/pretendard-jp/300.css new file mode 100644 index 00000000000..e8c2f00f99d --- /dev/null +++ b/fonts/other/pretendard-jp/300.css @@ -0,0 +1,8 @@ +/* pretendard-jp-latin-300-normal */ +@font-face { + font-family: 'Pretendard JP'; + font-style: normal; + font-display: swap; + font-weight: 300; + src: url(./files/pretendard-jp-latin-300-normal.woff2) format('woff2'), url(./files/pretendard-jp-latin-300-normal.woff) format('woff'); +} \ No newline at end of file diff --git a/fonts/other/pretendard-jp/400.css b/fonts/other/pretendard-jp/400.css new file mode 100644 index 00000000000..3d7a3b6c03e --- /dev/null +++ b/fonts/other/pretendard-jp/400.css @@ -0,0 +1,8 @@ +/* pretendard-jp-latin-400-normal */ +@font-face { + font-family: 'Pretendard JP'; + font-style: normal; + font-display: swap; + font-weight: 400; + src: url(./files/pretendard-jp-latin-400-normal.woff2) format('woff2'), url(./files/pretendard-jp-latin-400-normal.woff) format('woff'); +} \ No newline at end of file diff --git a/fonts/other/pretendard-jp/500.css b/fonts/other/pretendard-jp/500.css new file mode 100644 index 00000000000..0f46d5547eb --- /dev/null +++ b/fonts/other/pretendard-jp/500.css @@ -0,0 +1,8 @@ +/* pretendard-jp-latin-500-normal */ +@font-face { + font-family: 'Pretendard JP'; + font-style: normal; + font-display: swap; + font-weight: 500; + src: url(./files/pretendard-jp-latin-500-normal.woff2) format('woff2'), url(./files/pretendard-jp-latin-500-normal.woff) format('woff'); +} \ No newline at end of file diff --git a/fonts/other/pretendard-jp/600.css b/fonts/other/pretendard-jp/600.css new file mode 100644 index 00000000000..5400e0c3e46 --- /dev/null +++ b/fonts/other/pretendard-jp/600.css @@ -0,0 +1,8 @@ +/* pretendard-jp-latin-600-normal */ +@font-face { + font-family: 'Pretendard JP'; + font-style: normal; + font-display: swap; + font-weight: 600; + src: url(./files/pretendard-jp-latin-600-normal.woff2) format('woff2'), url(./files/pretendard-jp-latin-600-normal.woff) format('woff'); +} \ No newline at end of file diff --git a/fonts/other/pretendard-jp/700.css b/fonts/other/pretendard-jp/700.css new file mode 100644 index 00000000000..ad0639d1225 --- /dev/null +++ b/fonts/other/pretendard-jp/700.css @@ -0,0 +1,8 @@ +/* pretendard-jp-latin-700-normal */ +@font-face { + font-family: 'Pretendard JP'; + font-style: normal; + font-display: swap; + font-weight: 700; + src: url(./files/pretendard-jp-latin-700-normal.woff2) format('woff2'), url(./files/pretendard-jp-latin-700-normal.woff) format('woff'); +} \ No newline at end of file diff --git a/fonts/other/pretendard-jp/800.css b/fonts/other/pretendard-jp/800.css new file mode 100644 index 00000000000..d4d17e9c0df --- /dev/null +++ b/fonts/other/pretendard-jp/800.css @@ -0,0 +1,8 @@ +/* pretendard-jp-latin-800-normal */ +@font-face { + font-family: 'Pretendard JP'; + font-style: normal; + font-display: swap; + font-weight: 800; + src: url(./files/pretendard-jp-latin-800-normal.woff2) format('woff2'), url(./files/pretendard-jp-latin-800-normal.woff) format('woff'); +} \ No newline at end of file diff --git a/fonts/other/pretendard-jp/900.css b/fonts/other/pretendard-jp/900.css new file mode 100644 index 00000000000..724a996246b --- /dev/null +++ b/fonts/other/pretendard-jp/900.css @@ -0,0 +1,8 @@ +/* pretendard-jp-latin-900-normal */ +@font-face { + font-family: 'Pretendard JP'; + font-style: normal; + font-display: swap; + font-weight: 900; + src: url(./files/pretendard-jp-latin-900-normal.woff2) format('woff2'), url(./files/pretendard-jp-latin-900-normal.woff) format('woff'); +} \ No newline at end of file diff --git a/fonts/other/pretendard-jp/CHANGELOG.md b/fonts/other/pretendard-jp/CHANGELOG.md new file mode 100644 index 00000000000..e798685bbf8 --- /dev/null +++ b/fonts/other/pretendard-jp/CHANGELOG.md @@ -0,0 +1,2 @@ +# Changelog +See the [Fontsource CHANGELOG.md](https://github.com/fontsource/fontsource/blob/main/CHANGELOG.md). \ No newline at end of file diff --git a/fonts/other/pretendard-jp/LICENSE b/fonts/other/pretendard-jp/LICENSE new file mode 100644 index 00000000000..160421b6039 --- /dev/null +++ b/fonts/other/pretendard-jp/LICENSE @@ -0,0 +1,104 @@ +Copyright (c) 2021, Kil Hyung-jin (https://github.com/orioncactus/pretendard), +with Reserved Font Name 'Pretendard'. + +Copyright 2014-2021 Adobe (http://www.adobe.com/), +with Reserved Font Name 'Source'. +Source is a trademark of Adobe in the United States and/or other countries. + +Copyright (c) 2016 The Inter Project Authors (https://github.com/rsms/inter), +with Reserved Font Name 'Inter'. + +Copyright 2021 The M+ FONTS Project Authors (https://github.com/coz-m/MPLUS_FONTS), +with Reserved Font Name 'M PLUS 1'. + +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: +https://scripts.sil.org/OFL + + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/fonts/other/pretendard-jp/README.md b/fonts/other/pretendard-jp/README.md new file mode 100644 index 00000000000..585b5b3f3f9 --- /dev/null +++ b/fonts/other/pretendard-jp/README.md @@ -0,0 +1,47 @@ +# Fontsource Pretendard JP + +[![npm (scoped)](https://img.shields.io/npm/v/@fontsource/pretendard-jp?color=brightgreen)](https://www.npmjs.com/package/@fontsource/pretendard-jp) [![Generic badge](https://img.shields.io/badge/fontsource-passing-brightgreen)](https://github.com/fontsource/fontsource) [![Monthly downloads](https://badgen.net/npm/dm/@fontsource/pretendard-jp)](https://github.com/fontsource/fontsource) [![Total downloads](https://badgen.net/npm/dt/@fontsource/pretendard-jp)](https://github.com/fontsource/fontsource) [![GitHub stars](https://img.shields.io/github/stars/fontsource/fontsource.svg?style=social&label=Star)](https://github.com/fontsource/fontsource/stargazers) + +The CSS and web font files to easily self-host the “Pretendard JP” font. Please visit the main [Fontsource website](https://fontsource.org/fonts/pretendard-jp) to view more details on this package. + +## Quick Installation + +Fontsource offers multiple methods to import the CSS, including using a bundler like Vite or using SASS. You can find full documentation [here](https://fontsource.org/docs/getting-started/introduction). + +```javascript +npm install @fontsource/pretendard-jp +``` + +Within your app entry file or site component, import it in. + +```javascript +import "@fontsource/pretendard-jp"; // Defaults to weight 400 +import "@fontsource/pretendard-jp/400.css"; // Specify weight +import "@fontsource/pretendard-jp/400-italic.css"; // Specify weight and style +``` + +Supported variables: +- Weights: `[100,200,300,400,500,600,700,800,900]` +- Styles: `[normal]` +- Subsets: `[latin]` + +> Note: `italic` may not be supported by all fonts. To learn more about what weights and styles are supported, please visit the [Fontsource website](https://fontsource.org/fonts/pretendard-jp). + +Finally, you can reference the font name in a CSS stylesheet, CSS Module, or CSS-in-JS. + +```css +body { + font-family: "Pretendard JP"; +} +``` + +## Licensing +Always make sure to read the license for each font you use. Most of the fonts in the collection use the SIL Open Font License, v1.1. Some fonts use the Apache 2 license. The Ubuntu fonts use the Ubuntu Font License v1.0. + +Kil Hyung-jin, Adobe, The Inter Project Authors, The M+ FONTS Project Authors +[OFL-1.1](https://github.com/orioncactus/pretendard/blob/main/LICENSE) + +## Other Notes +Font version (provided by source): `v1.3.9`. + +If you have any suggestions or ideas to improve the performance of font loading or expand the existing library, feel free to star and contribute to this repository. You can share your suggestions or ideas by creating an [issue](https://github.com/fontsource/fontsource/issues). \ No newline at end of file diff --git a/fonts/other/pretendard-jp/files/pretendard-jp-latin-100-normal.woff b/fonts/other/pretendard-jp/files/pretendard-jp-latin-100-normal.woff new file mode 100644 index 00000000000..6cd6309dce2 Binary files /dev/null and b/fonts/other/pretendard-jp/files/pretendard-jp-latin-100-normal.woff differ diff --git a/fonts/other/pretendard-jp/files/pretendard-jp-latin-100-normal.woff2 b/fonts/other/pretendard-jp/files/pretendard-jp-latin-100-normal.woff2 new file mode 100644 index 00000000000..c53aa1fb2f8 Binary files /dev/null and b/fonts/other/pretendard-jp/files/pretendard-jp-latin-100-normal.woff2 differ diff --git a/fonts/other/pretendard-jp/files/pretendard-jp-latin-200-normal.woff b/fonts/other/pretendard-jp/files/pretendard-jp-latin-200-normal.woff new file mode 100644 index 00000000000..04efdcae72f Binary files /dev/null and b/fonts/other/pretendard-jp/files/pretendard-jp-latin-200-normal.woff differ diff --git a/fonts/other/pretendard-jp/files/pretendard-jp-latin-200-normal.woff2 b/fonts/other/pretendard-jp/files/pretendard-jp-latin-200-normal.woff2 new file mode 100644 index 00000000000..67b9b1bd1e2 Binary files /dev/null and b/fonts/other/pretendard-jp/files/pretendard-jp-latin-200-normal.woff2 differ diff --git a/fonts/other/pretendard-jp/files/pretendard-jp-latin-300-normal.woff b/fonts/other/pretendard-jp/files/pretendard-jp-latin-300-normal.woff new file mode 100644 index 00000000000..d5d6bfb90c9 Binary files /dev/null and b/fonts/other/pretendard-jp/files/pretendard-jp-latin-300-normal.woff differ diff --git a/fonts/other/pretendard-jp/files/pretendard-jp-latin-300-normal.woff2 b/fonts/other/pretendard-jp/files/pretendard-jp-latin-300-normal.woff2 new file mode 100644 index 00000000000..60a0ec124f3 Binary files /dev/null and b/fonts/other/pretendard-jp/files/pretendard-jp-latin-300-normal.woff2 differ diff --git a/fonts/other/pretendard-jp/files/pretendard-jp-latin-400-normal.woff b/fonts/other/pretendard-jp/files/pretendard-jp-latin-400-normal.woff new file mode 100644 index 00000000000..db2b14e04cc Binary files /dev/null and b/fonts/other/pretendard-jp/files/pretendard-jp-latin-400-normal.woff differ diff --git a/fonts/other/pretendard-jp/files/pretendard-jp-latin-400-normal.woff2 b/fonts/other/pretendard-jp/files/pretendard-jp-latin-400-normal.woff2 new file mode 100644 index 00000000000..8c3979f27da Binary files /dev/null and b/fonts/other/pretendard-jp/files/pretendard-jp-latin-400-normal.woff2 differ diff --git a/fonts/other/pretendard-jp/files/pretendard-jp-latin-500-normal.woff b/fonts/other/pretendard-jp/files/pretendard-jp-latin-500-normal.woff new file mode 100644 index 00000000000..c6e24311852 Binary files /dev/null and b/fonts/other/pretendard-jp/files/pretendard-jp-latin-500-normal.woff differ diff --git a/fonts/other/pretendard-jp/files/pretendard-jp-latin-500-normal.woff2 b/fonts/other/pretendard-jp/files/pretendard-jp-latin-500-normal.woff2 new file mode 100644 index 00000000000..424878e36e4 Binary files /dev/null and b/fonts/other/pretendard-jp/files/pretendard-jp-latin-500-normal.woff2 differ diff --git a/fonts/other/pretendard-jp/files/pretendard-jp-latin-600-normal.woff b/fonts/other/pretendard-jp/files/pretendard-jp-latin-600-normal.woff new file mode 100644 index 00000000000..094f3c2b036 Binary files /dev/null and b/fonts/other/pretendard-jp/files/pretendard-jp-latin-600-normal.woff differ diff --git a/fonts/other/pretendard-jp/files/pretendard-jp-latin-600-normal.woff2 b/fonts/other/pretendard-jp/files/pretendard-jp-latin-600-normal.woff2 new file mode 100644 index 00000000000..284b5d5f808 Binary files /dev/null and b/fonts/other/pretendard-jp/files/pretendard-jp-latin-600-normal.woff2 differ diff --git a/fonts/other/pretendard-jp/files/pretendard-jp-latin-700-normal.woff b/fonts/other/pretendard-jp/files/pretendard-jp-latin-700-normal.woff new file mode 100644 index 00000000000..8f69f8e00b0 Binary files /dev/null and b/fonts/other/pretendard-jp/files/pretendard-jp-latin-700-normal.woff differ diff --git a/fonts/other/pretendard-jp/files/pretendard-jp-latin-700-normal.woff2 b/fonts/other/pretendard-jp/files/pretendard-jp-latin-700-normal.woff2 new file mode 100644 index 00000000000..590e60e92bf Binary files /dev/null and b/fonts/other/pretendard-jp/files/pretendard-jp-latin-700-normal.woff2 differ diff --git a/fonts/other/pretendard-jp/files/pretendard-jp-latin-800-normal.woff b/fonts/other/pretendard-jp/files/pretendard-jp-latin-800-normal.woff new file mode 100644 index 00000000000..9a10b24f4f1 Binary files /dev/null and b/fonts/other/pretendard-jp/files/pretendard-jp-latin-800-normal.woff differ diff --git a/fonts/other/pretendard-jp/files/pretendard-jp-latin-800-normal.woff2 b/fonts/other/pretendard-jp/files/pretendard-jp-latin-800-normal.woff2 new file mode 100644 index 00000000000..2e497a48f83 Binary files /dev/null and b/fonts/other/pretendard-jp/files/pretendard-jp-latin-800-normal.woff2 differ diff --git a/fonts/other/pretendard-jp/files/pretendard-jp-latin-900-normal.woff b/fonts/other/pretendard-jp/files/pretendard-jp-latin-900-normal.woff new file mode 100644 index 00000000000..40b6800ae71 Binary files /dev/null and b/fonts/other/pretendard-jp/files/pretendard-jp-latin-900-normal.woff differ diff --git a/fonts/other/pretendard-jp/files/pretendard-jp-latin-900-normal.woff2 b/fonts/other/pretendard-jp/files/pretendard-jp-latin-900-normal.woff2 new file mode 100644 index 00000000000..e3116b985f2 Binary files /dev/null and b/fonts/other/pretendard-jp/files/pretendard-jp-latin-900-normal.woff2 differ diff --git a/fonts/other/pretendard-jp/index.css b/fonts/other/pretendard-jp/index.css new file mode 100644 index 00000000000..3d7a3b6c03e --- /dev/null +++ b/fonts/other/pretendard-jp/index.css @@ -0,0 +1,8 @@ +/* pretendard-jp-latin-400-normal */ +@font-face { + font-family: 'Pretendard JP'; + font-style: normal; + font-display: swap; + font-weight: 400; + src: url(./files/pretendard-jp-latin-400-normal.woff2) format('woff2'), url(./files/pretendard-jp-latin-400-normal.woff) format('woff'); +} \ No newline at end of file diff --git a/fonts/other/pretendard-jp/latin-100.css b/fonts/other/pretendard-jp/latin-100.css new file mode 100644 index 00000000000..1b191788e34 --- /dev/null +++ b/fonts/other/pretendard-jp/latin-100.css @@ -0,0 +1,8 @@ +/* pretendard-jp-latin-100-normal */ +@font-face { + font-family: 'Pretendard JP'; + font-style: normal; + font-display: swap; + font-weight: 100; + src: url(./files/pretendard-jp-latin-100-normal.woff2) format('woff2'), url(./files/pretendard-jp-latin-100-normal.woff) format('woff'); +} \ No newline at end of file diff --git a/fonts/other/pretendard-jp/latin-200.css b/fonts/other/pretendard-jp/latin-200.css new file mode 100644 index 00000000000..bb71ac50ebf --- /dev/null +++ b/fonts/other/pretendard-jp/latin-200.css @@ -0,0 +1,8 @@ +/* pretendard-jp-latin-200-normal */ +@font-face { + font-family: 'Pretendard JP'; + font-style: normal; + font-display: swap; + font-weight: 200; + src: url(./files/pretendard-jp-latin-200-normal.woff2) format('woff2'), url(./files/pretendard-jp-latin-200-normal.woff) format('woff'); +} \ No newline at end of file diff --git a/fonts/other/pretendard-jp/latin-300.css b/fonts/other/pretendard-jp/latin-300.css new file mode 100644 index 00000000000..e8c2f00f99d --- /dev/null +++ b/fonts/other/pretendard-jp/latin-300.css @@ -0,0 +1,8 @@ +/* pretendard-jp-latin-300-normal */ +@font-face { + font-family: 'Pretendard JP'; + font-style: normal; + font-display: swap; + font-weight: 300; + src: url(./files/pretendard-jp-latin-300-normal.woff2) format('woff2'), url(./files/pretendard-jp-latin-300-normal.woff) format('woff'); +} \ No newline at end of file diff --git a/fonts/other/pretendard-jp/latin-400.css b/fonts/other/pretendard-jp/latin-400.css new file mode 100644 index 00000000000..3d7a3b6c03e --- /dev/null +++ b/fonts/other/pretendard-jp/latin-400.css @@ -0,0 +1,8 @@ +/* pretendard-jp-latin-400-normal */ +@font-face { + font-family: 'Pretendard JP'; + font-style: normal; + font-display: swap; + font-weight: 400; + src: url(./files/pretendard-jp-latin-400-normal.woff2) format('woff2'), url(./files/pretendard-jp-latin-400-normal.woff) format('woff'); +} \ No newline at end of file diff --git a/fonts/other/pretendard-jp/latin-500.css b/fonts/other/pretendard-jp/latin-500.css new file mode 100644 index 00000000000..0f46d5547eb --- /dev/null +++ b/fonts/other/pretendard-jp/latin-500.css @@ -0,0 +1,8 @@ +/* pretendard-jp-latin-500-normal */ +@font-face { + font-family: 'Pretendard JP'; + font-style: normal; + font-display: swap; + font-weight: 500; + src: url(./files/pretendard-jp-latin-500-normal.woff2) format('woff2'), url(./files/pretendard-jp-latin-500-normal.woff) format('woff'); +} \ No newline at end of file diff --git a/fonts/other/pretendard-jp/latin-600.css b/fonts/other/pretendard-jp/latin-600.css new file mode 100644 index 00000000000..5400e0c3e46 --- /dev/null +++ b/fonts/other/pretendard-jp/latin-600.css @@ -0,0 +1,8 @@ +/* pretendard-jp-latin-600-normal */ +@font-face { + font-family: 'Pretendard JP'; + font-style: normal; + font-display: swap; + font-weight: 600; + src: url(./files/pretendard-jp-latin-600-normal.woff2) format('woff2'), url(./files/pretendard-jp-latin-600-normal.woff) format('woff'); +} \ No newline at end of file diff --git a/fonts/other/pretendard-jp/latin-700.css b/fonts/other/pretendard-jp/latin-700.css new file mode 100644 index 00000000000..ad0639d1225 --- /dev/null +++ b/fonts/other/pretendard-jp/latin-700.css @@ -0,0 +1,8 @@ +/* pretendard-jp-latin-700-normal */ +@font-face { + font-family: 'Pretendard JP'; + font-style: normal; + font-display: swap; + font-weight: 700; + src: url(./files/pretendard-jp-latin-700-normal.woff2) format('woff2'), url(./files/pretendard-jp-latin-700-normal.woff) format('woff'); +} \ No newline at end of file diff --git a/fonts/other/pretendard-jp/latin-800.css b/fonts/other/pretendard-jp/latin-800.css new file mode 100644 index 00000000000..d4d17e9c0df --- /dev/null +++ b/fonts/other/pretendard-jp/latin-800.css @@ -0,0 +1,8 @@ +/* pretendard-jp-latin-800-normal */ +@font-face { + font-family: 'Pretendard JP'; + font-style: normal; + font-display: swap; + font-weight: 800; + src: url(./files/pretendard-jp-latin-800-normal.woff2) format('woff2'), url(./files/pretendard-jp-latin-800-normal.woff) format('woff'); +} \ No newline at end of file diff --git a/fonts/other/pretendard-jp/latin-900.css b/fonts/other/pretendard-jp/latin-900.css new file mode 100644 index 00000000000..724a996246b --- /dev/null +++ b/fonts/other/pretendard-jp/latin-900.css @@ -0,0 +1,8 @@ +/* pretendard-jp-latin-900-normal */ +@font-face { + font-family: 'Pretendard JP'; + font-style: normal; + font-display: swap; + font-weight: 900; + src: url(./files/pretendard-jp-latin-900-normal.woff2) format('woff2'), url(./files/pretendard-jp-latin-900-normal.woff) format('woff'); +} \ No newline at end of file diff --git a/fonts/other/pretendard-jp/latin.css b/fonts/other/pretendard-jp/latin.css new file mode 100644 index 00000000000..dfe7af10a3d --- /dev/null +++ b/fonts/other/pretendard-jp/latin.css @@ -0,0 +1,80 @@ +/* pretendard-jp-latin-100-normal */ +@font-face { + font-family: 'Pretendard JP'; + font-style: normal; + font-display: swap; + font-weight: 100; + src: url(./files/pretendard-jp-latin-100-normal.woff2) format('woff2'), url(./files/pretendard-jp-latin-100-normal.woff) format('woff'); +} + +/* pretendard-jp-latin-200-normal */ +@font-face { + font-family: 'Pretendard JP'; + font-style: normal; + font-display: swap; + font-weight: 200; + src: url(./files/pretendard-jp-latin-200-normal.woff2) format('woff2'), url(./files/pretendard-jp-latin-200-normal.woff) format('woff'); +} + +/* pretendard-jp-latin-300-normal */ +@font-face { + font-family: 'Pretendard JP'; + font-style: normal; + font-display: swap; + font-weight: 300; + src: url(./files/pretendard-jp-latin-300-normal.woff2) format('woff2'), url(./files/pretendard-jp-latin-300-normal.woff) format('woff'); +} + +/* pretendard-jp-latin-400-normal */ +@font-face { + font-family: 'Pretendard JP'; + font-style: normal; + font-display: swap; + font-weight: 400; + src: url(./files/pretendard-jp-latin-400-normal.woff2) format('woff2'), url(./files/pretendard-jp-latin-400-normal.woff) format('woff'); +} + +/* pretendard-jp-latin-500-normal */ +@font-face { + font-family: 'Pretendard JP'; + font-style: normal; + font-display: swap; + font-weight: 500; + src: url(./files/pretendard-jp-latin-500-normal.woff2) format('woff2'), url(./files/pretendard-jp-latin-500-normal.woff) format('woff'); +} + +/* pretendard-jp-latin-600-normal */ +@font-face { + font-family: 'Pretendard JP'; + font-style: normal; + font-display: swap; + font-weight: 600; + src: url(./files/pretendard-jp-latin-600-normal.woff2) format('woff2'), url(./files/pretendard-jp-latin-600-normal.woff) format('woff'); +} + +/* pretendard-jp-latin-700-normal */ +@font-face { + font-family: 'Pretendard JP'; + font-style: normal; + font-display: swap; + font-weight: 700; + src: url(./files/pretendard-jp-latin-700-normal.woff2) format('woff2'), url(./files/pretendard-jp-latin-700-normal.woff) format('woff'); +} + +/* pretendard-jp-latin-800-normal */ +@font-face { + font-family: 'Pretendard JP'; + font-style: normal; + font-display: swap; + font-weight: 800; + src: url(./files/pretendard-jp-latin-800-normal.woff2) format('woff2'), url(./files/pretendard-jp-latin-800-normal.woff) format('woff'); +} + +/* pretendard-jp-latin-900-normal */ +@font-face { + font-family: 'Pretendard JP'; + font-style: normal; + font-display: swap; + font-weight: 900; + src: url(./files/pretendard-jp-latin-900-normal.woff2) format('woff2'), url(./files/pretendard-jp-latin-900-normal.woff) format('woff'); +} \ No newline at end of file diff --git a/fonts/other/pretendard-jp/metadata.json b/fonts/other/pretendard-jp/metadata.json new file mode 100644 index 00000000000..711321338c2 --- /dev/null +++ b/fonts/other/pretendard-jp/metadata.json @@ -0,0 +1,19 @@ +{ + "id": "pretendard-jp", + "family": "Pretendard JP", + "subsets": ["latin"], + "weights": [100, 200, 300, 400, 500, 600, 700, 800, 900], + "styles": ["normal"], + "defSubset": "latin", + "variable": false, + "lastModified": "2026-04-22", + "version": "v1.3.9", + "category": "sans-serif", + "license": { + "type": "OFL-1.1", + "url": "https://github.com/orioncactus/pretendard/blob/main/LICENSE", + "attribution": "2021 Kil Hyung-jin, 2014-2021 Adobe, 2016 The Inter Project Authors, 2021 The M+ FONTS Project Authors" + }, + "source": "https://github.com/orioncactus/pretendard", + "type": "other" +} \ No newline at end of file diff --git a/fonts/other/pretendard-jp/package.json b/fonts/other/pretendard-jp/package.json new file mode 100644 index 00000000000..3a8672f949d --- /dev/null +++ b/fonts/other/pretendard-jp/package.json @@ -0,0 +1,46 @@ +{ + "name": "@fontsource/pretendard-jp", + "version": "5.2.0", + "description": "Self-host the Pretendard JP font in a neatly bundled NPM package.", + "main": "index.css", + "publishConfig": {"access": "public"}, + "keywords": [ + "fontsource", + "font", + "font family", + "google fonts", + "pretendard-jp", + "Pretendard JP", + "css", + "sass", + "front-end", + "web", + "typeface", + "variable" + ], + "exports": { + ".": {"sass": "./index.css", "default": "./index.css"}, + "./LICENSE": "./LICENSE", + "./*": {"sass": "./*.css", "default": "./*.css"}, + "./*.css": {"sass": "./*.css", "default": "./*.css"}, + "./files/*": {"sass": "./files/*", "default": "./files/*"}, + "./files/*.woff": {"sass": "./files/*.woff", "default": "./files/*.woff"}, + "./files/*.woff2": { + "sass": "./files/*.woff2", + "default": "./files/*.woff2" + }, + "./package.json": "./package.json", + "./metadata.json": "./metadata.json", + "./unicode.json": "./unicode.json", + "./scss": {"sass": "./scss/metadata.scss"} + }, + "author": "2021 Kil Hyung-jin, 2014-2021 Adobe, 2016 The Inter Project Authors, 2021 The M+ FONTS Project Authors", + "license": "OFL-1.1", + "homepage": "https://fontsource.org/fonts/pretendard-jp", + "funding": "https://github.com/sponsors/ayuhito", + "repository": { + "type": "git", + "url": "git+https://github.com/fontsource/font-files.git", + "directory": "fonts/other/pretendard-jp" + } +} \ No newline at end of file diff --git a/fonts/other/pretendard-jp/scss/metadata.scss b/fonts/other/pretendard-jp/scss/metadata.scss new file mode 100644 index 00000000000..08811ac0a95 --- /dev/null +++ b/fonts/other/pretendard-jp/scss/metadata.scss @@ -0,0 +1,26 @@ +$id: 'pretendard-jp'; +$family: 'Pretendard JP'; +$category: sans-serif; +$subsets: (latin); +$weights: (100, 200, 300, 400, 500, 600, 700, 800, 900); +$styles: (normal); +$axes: null; +$defaults: ( + subset: latin, + weight: 400, + style: normal, + axis: null, +); +$unicode: null; + +$metadata: ( + id: $id, + family: $family, + category: $category, + subsets: $subsets, + weights: $weights, + styles: $styles, + axes: $axes, + defaults: $defaults, + unicode: $unicode, +) !default; \ No newline at end of file diff --git a/fonts/other/pretendard-jp/scss/mixins.scss b/fonts/other/pretendard-jp/scss/mixins.scss new file mode 100644 index 00000000000..8388db5ae63 --- /dev/null +++ b/fonts/other/pretendard-jp/scss/mixins.scss @@ -0,0 +1,193 @@ +@use 'sass:list'; +@use 'sass:map'; +@use 'sass:math'; +@use 'sass:meta'; +@use 'sass:string'; + +@use 'metadata'; + +$metadata: metadata.$metadata !default; +$directory: null !default; + +$family: null !default; +$display: null !default; +$formats: null !default; +$subsets: null !default; +$weights: null !default; +$styles: null !default; +$axes: null !default; + +// Deprecated +$displayVar: null !default; + +@mixin generator( + $metadata: $metadata, + $directory: $directory, + $family: $family, + $display: $display, + $formats: $formats, + $subsets: $subsets, + $weights: $weights, + $styles: $styles, + $axes: $axes, + + // Deprecated + $displayVar: $displayVar +) { + @warn "Importing mixins via the fontsource package is deprecated and will be removed in the next major release. Please use the @fontsource-utils/scss package instead."; + + @if $displayVar != null { + @warn "$displayVar is deprecated due to the limitation of using css variables in @font-face (https://github.com/fontsource/fontsource/issues/726)."; + } + + $isVariable: map.get($metadata, axes) != null; + + $directory: if( + $directory, + $directory, + '~@fontsource#{if($isVariable, '-variable', '')}/#{map.get($metadata, id)}/files' + ); + + $family: if($family, $family, map.get($metadata, family) + if($isVariable, ' Variable', '')); + $display: if($display, $display, swap); + $formats: if(not $formats or $formats == all, if($isVariable, woff2, (woff2, woff)), $formats); + $subsets: if( + $subsets, + if($subsets == all, map.get($metadata, subsets), $subsets), + map.get($metadata, subsets) + ); + $weights: if( + $weights, + if($weights == all, map.get($metadata, weights), $weights), + map.get($metadata, defaults, weight) + ); + $styles: if( + $styles, + if($styles == all, map.get($metadata, styles), $styles), + map.get($metadata, defaults, style) + ); + $axes: if( + $axes, + if($axes == all, full, $axes), + if($isVariable, if(map.has-key($metadata, axes, wght), wght, full), null) + ); + + @each $subset in $subsets { + @each $unicodeSubset, $unicodeRange in map.get($metadata, unicode) { + // If condition is true, generate faces for the current subset + @if ( + // If there is no unicode information for the font or + ($unicodeSubset == null) or + // If the subset match a unicode subset or + ($subset == $unicodeSubset) or + ( + // If $unicodeSubset is a numeric unicode subset + // and current subset exists in the list of font subsets but does not match any unicode subset + // then generate faces for this numeric unicode subset as it is representing part of the current subset + list.index(map.get($metadata, subsets), $subset) and not + map.has-key($metadata, unicode, $subset) and not + list.index(map.get($metadata, subsets), $unicodeSubset) + ) + ) { + @each $weight in if($axes, null, $weights) { + @each $axis in $axes { + @each $style in $styles { + $variant: '#{map.get($metadata, id)}-#{if($unicodeSubset, $unicodeSubset, $subset)}-#{if($axis, $axis, $weight)}-#{$style}'; + + $src: (); + @each $format in $formats { + $src: list.append( + $src, + url('#{$directory}/#{$variant}.#{$format}') + format('#{$format}#{if($axis, '-variations', '')}'), + comma + ); + } + + @content (( + metadata: $metadata, + directory: $directory, + family: $family, + display: $display, + formats: $formats, + subsets: $subsets, + weights: $weights, + styles: $styles, + axes: $axes, + + variant: $variant, + subset: $subset, + unicodeSubset: $unicodeSubset, + unicodeRange: $unicodeRange, + weight: $weight, + axis: $axis, + style: $style, + + font-family: string.quote($family), + font-style: if( + (($axis == full) or ($axis == slnt)) and map.has-key($metadata, axes, slnt), + oblique map.get($metadata, axes, slnt, min) + deg map.get($metadata, axes, slnt, max) + deg, + $style + ), + font-display: $display, + font-weight: if( + (($axis == full) or ($axis == wght)) and map.has-key($metadata, axes, wght), + map.get($metadata, axes, wght, min) map.get($metadata, axes, wght, max), + $weight + ), + font-stretch: if( + (($axis == full) or ($axis == wdth)) and map.has-key($metadata, axes, wdth), + '#{map.get($metadata, axes, wdth, min)}% #{map.get($metadata, axes, wdth, max)}%', + null + ), + src: $src, + unicode-range: $unicodeRange, + )); + } + } + } + } + } + } +} + +@mixin faces( + $metadata: $metadata, + $directory: $directory, + $family: $family, + $display: $display, + $formats: $formats, + $subsets: $subsets, + $weights: $weights, + $styles: $styles, + $axes: $axes, + + // Deprecated + $displayVar: $displayVar +) { + @include generator( + $metadata: $metadata, + $directory: $directory, + $family: $family, + $display: $display, + $formats: $formats, + $subsets: $subsets, + $weights: $weights, + $styles: $styles, + $axes: $axes, + + $displayVar: $displayVar + ) + using ($props) { + /* #{map.get($props, variant)} */ + @font-face { + font-family: map.get($props, font-family); + font-style: map.get($props, font-style); + font-display: map.get($props, font-display); + font-weight: map.get($props, font-weight); + font-stretch: map.get($props, font-stretch); + unicode-range: map.get($props, unicode-range); + src: map.get($props, src); + } + } +} diff --git a/fonts/other/pretendard-jp/unicode.json b/fonts/other/pretendard-jp/unicode.json new file mode 100644 index 00000000000..9e26dfeeb6e --- /dev/null +++ b/fonts/other/pretendard-jp/unicode.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/fonts/other/pretendard-std/100.css b/fonts/other/pretendard-std/100.css new file mode 100644 index 00000000000..e78a2bc96aa --- /dev/null +++ b/fonts/other/pretendard-std/100.css @@ -0,0 +1,8 @@ +/* pretendard-std-latin-100-normal */ +@font-face { + font-family: 'Pretendard Std'; + font-style: normal; + font-display: swap; + font-weight: 100; + src: url(./files/pretendard-std-latin-100-normal.woff2) format('woff2'), url(./files/pretendard-std-latin-100-normal.woff) format('woff'); +} \ No newline at end of file diff --git a/fonts/other/pretendard-std/200.css b/fonts/other/pretendard-std/200.css new file mode 100644 index 00000000000..76c34292b96 --- /dev/null +++ b/fonts/other/pretendard-std/200.css @@ -0,0 +1,8 @@ +/* pretendard-std-latin-200-normal */ +@font-face { + font-family: 'Pretendard Std'; + font-style: normal; + font-display: swap; + font-weight: 200; + src: url(./files/pretendard-std-latin-200-normal.woff2) format('woff2'), url(./files/pretendard-std-latin-200-normal.woff) format('woff'); +} \ No newline at end of file diff --git a/fonts/other/pretendard-std/300.css b/fonts/other/pretendard-std/300.css new file mode 100644 index 00000000000..f3266dbd169 --- /dev/null +++ b/fonts/other/pretendard-std/300.css @@ -0,0 +1,8 @@ +/* pretendard-std-latin-300-normal */ +@font-face { + font-family: 'Pretendard Std'; + font-style: normal; + font-display: swap; + font-weight: 300; + src: url(./files/pretendard-std-latin-300-normal.woff2) format('woff2'), url(./files/pretendard-std-latin-300-normal.woff) format('woff'); +} \ No newline at end of file diff --git a/fonts/other/pretendard-std/400.css b/fonts/other/pretendard-std/400.css new file mode 100644 index 00000000000..be9e4eb2a10 --- /dev/null +++ b/fonts/other/pretendard-std/400.css @@ -0,0 +1,8 @@ +/* pretendard-std-latin-400-normal */ +@font-face { + font-family: 'Pretendard Std'; + font-style: normal; + font-display: swap; + font-weight: 400; + src: url(./files/pretendard-std-latin-400-normal.woff2) format('woff2'), url(./files/pretendard-std-latin-400-normal.woff) format('woff'); +} \ No newline at end of file diff --git a/fonts/other/pretendard-std/500.css b/fonts/other/pretendard-std/500.css new file mode 100644 index 00000000000..0b1e9e7f047 --- /dev/null +++ b/fonts/other/pretendard-std/500.css @@ -0,0 +1,8 @@ +/* pretendard-std-latin-500-normal */ +@font-face { + font-family: 'Pretendard Std'; + font-style: normal; + font-display: swap; + font-weight: 500; + src: url(./files/pretendard-std-latin-500-normal.woff2) format('woff2'), url(./files/pretendard-std-latin-500-normal.woff) format('woff'); +} \ No newline at end of file diff --git a/fonts/other/pretendard-std/600.css b/fonts/other/pretendard-std/600.css new file mode 100644 index 00000000000..5628feb4855 --- /dev/null +++ b/fonts/other/pretendard-std/600.css @@ -0,0 +1,8 @@ +/* pretendard-std-latin-600-normal */ +@font-face { + font-family: 'Pretendard Std'; + font-style: normal; + font-display: swap; + font-weight: 600; + src: url(./files/pretendard-std-latin-600-normal.woff2) format('woff2'), url(./files/pretendard-std-latin-600-normal.woff) format('woff'); +} \ No newline at end of file diff --git a/fonts/other/pretendard-std/700.css b/fonts/other/pretendard-std/700.css new file mode 100644 index 00000000000..6ed117aa60c --- /dev/null +++ b/fonts/other/pretendard-std/700.css @@ -0,0 +1,8 @@ +/* pretendard-std-latin-700-normal */ +@font-face { + font-family: 'Pretendard Std'; + font-style: normal; + font-display: swap; + font-weight: 700; + src: url(./files/pretendard-std-latin-700-normal.woff2) format('woff2'), url(./files/pretendard-std-latin-700-normal.woff) format('woff'); +} \ No newline at end of file diff --git a/fonts/other/pretendard-std/800.css b/fonts/other/pretendard-std/800.css new file mode 100644 index 00000000000..4c82f0baf15 --- /dev/null +++ b/fonts/other/pretendard-std/800.css @@ -0,0 +1,8 @@ +/* pretendard-std-latin-800-normal */ +@font-face { + font-family: 'Pretendard Std'; + font-style: normal; + font-display: swap; + font-weight: 800; + src: url(./files/pretendard-std-latin-800-normal.woff2) format('woff2'), url(./files/pretendard-std-latin-800-normal.woff) format('woff'); +} \ No newline at end of file diff --git a/fonts/other/pretendard-std/900.css b/fonts/other/pretendard-std/900.css new file mode 100644 index 00000000000..0614e82460f --- /dev/null +++ b/fonts/other/pretendard-std/900.css @@ -0,0 +1,8 @@ +/* pretendard-std-latin-900-normal */ +@font-face { + font-family: 'Pretendard Std'; + font-style: normal; + font-display: swap; + font-weight: 900; + src: url(./files/pretendard-std-latin-900-normal.woff2) format('woff2'), url(./files/pretendard-std-latin-900-normal.woff) format('woff'); +} \ No newline at end of file diff --git a/fonts/other/pretendard-std/CHANGELOG.md b/fonts/other/pretendard-std/CHANGELOG.md new file mode 100644 index 00000000000..e798685bbf8 --- /dev/null +++ b/fonts/other/pretendard-std/CHANGELOG.md @@ -0,0 +1,2 @@ +# Changelog +See the [Fontsource CHANGELOG.md](https://github.com/fontsource/fontsource/blob/main/CHANGELOG.md). \ No newline at end of file diff --git a/fonts/other/pretendard-std/LICENSE b/fonts/other/pretendard-std/LICENSE new file mode 100644 index 00000000000..160421b6039 --- /dev/null +++ b/fonts/other/pretendard-std/LICENSE @@ -0,0 +1,104 @@ +Copyright (c) 2021, Kil Hyung-jin (https://github.com/orioncactus/pretendard), +with Reserved Font Name 'Pretendard'. + +Copyright 2014-2021 Adobe (http://www.adobe.com/), +with Reserved Font Name 'Source'. +Source is a trademark of Adobe in the United States and/or other countries. + +Copyright (c) 2016 The Inter Project Authors (https://github.com/rsms/inter), +with Reserved Font Name 'Inter'. + +Copyright 2021 The M+ FONTS Project Authors (https://github.com/coz-m/MPLUS_FONTS), +with Reserved Font Name 'M PLUS 1'. + +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: +https://scripts.sil.org/OFL + + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/fonts/other/pretendard-std/README.md b/fonts/other/pretendard-std/README.md new file mode 100644 index 00000000000..5ac61b545db --- /dev/null +++ b/fonts/other/pretendard-std/README.md @@ -0,0 +1,47 @@ +# Fontsource Pretendard Std + +[![npm (scoped)](https://img.shields.io/npm/v/@fontsource/pretendard-std?color=brightgreen)](https://www.npmjs.com/package/@fontsource/pretendard-std) [![Generic badge](https://img.shields.io/badge/fontsource-passing-brightgreen)](https://github.com/fontsource/fontsource) [![Monthly downloads](https://badgen.net/npm/dm/@fontsource/pretendard-std)](https://github.com/fontsource/fontsource) [![Total downloads](https://badgen.net/npm/dt/@fontsource/pretendard-std)](https://github.com/fontsource/fontsource) [![GitHub stars](https://img.shields.io/github/stars/fontsource/fontsource.svg?style=social&label=Star)](https://github.com/fontsource/fontsource/stargazers) + +The CSS and web font files to easily self-host the “Pretendard Std” font. Please visit the main [Fontsource website](https://fontsource.org/fonts/pretendard-std) to view more details on this package. + +## Quick Installation + +Fontsource offers multiple methods to import the CSS, including using a bundler like Vite or using SASS. You can find full documentation [here](https://fontsource.org/docs/getting-started/introduction). + +```javascript +npm install @fontsource/pretendard-std +``` + +Within your app entry file or site component, import it in. + +```javascript +import "@fontsource/pretendard-std"; // Defaults to weight 400 +import "@fontsource/pretendard-std/400.css"; // Specify weight +import "@fontsource/pretendard-std/400-italic.css"; // Specify weight and style +``` + +Supported variables: +- Weights: `[100,200,300,400,500,600,700,800,900]` +- Styles: `[normal]` +- Subsets: `[latin]` + +> Note: `italic` may not be supported by all fonts. To learn more about what weights and styles are supported, please visit the [Fontsource website](https://fontsource.org/fonts/pretendard-std). + +Finally, you can reference the font name in a CSS stylesheet, CSS Module, or CSS-in-JS. + +```css +body { + font-family: "Pretendard Std"; +} +``` + +## Licensing +Always make sure to read the license for each font you use. Most of the fonts in the collection use the SIL Open Font License, v1.1. Some fonts use the Apache 2 license. The Ubuntu fonts use the Ubuntu Font License v1.0. + +2021 Kil Hyung-jin, 2014-2021 Adobe, 2016 The Inter Project Authors, 2021 The M+ FONTS Project Authors +[OFL-1.1](https://github.com/orioncactus/pretendard/blob/main/LICENSE) + +## Other Notes +Font version (provided by source): `v1.3.9`. + +If you have any suggestions or ideas to improve the performance of font loading or expand the existing library, feel free to star and contribute to this repository. You can share your suggestions or ideas by creating an [issue](https://github.com/fontsource/fontsource/issues). \ No newline at end of file diff --git a/fonts/other/pretendard-std/files/pretendard-std-latin-100-normal.woff b/fonts/other/pretendard-std/files/pretendard-std-latin-100-normal.woff new file mode 100644 index 00000000000..8c177ae89e0 Binary files /dev/null and b/fonts/other/pretendard-std/files/pretendard-std-latin-100-normal.woff differ diff --git a/fonts/other/pretendard-std/files/pretendard-std-latin-100-normal.woff2 b/fonts/other/pretendard-std/files/pretendard-std-latin-100-normal.woff2 new file mode 100644 index 00000000000..64fdbf80c5e Binary files /dev/null and b/fonts/other/pretendard-std/files/pretendard-std-latin-100-normal.woff2 differ diff --git a/fonts/other/pretendard-std/files/pretendard-std-latin-200-normal.woff b/fonts/other/pretendard-std/files/pretendard-std-latin-200-normal.woff new file mode 100644 index 00000000000..d394ab3f72e Binary files /dev/null and b/fonts/other/pretendard-std/files/pretendard-std-latin-200-normal.woff differ diff --git a/fonts/other/pretendard-std/files/pretendard-std-latin-200-normal.woff2 b/fonts/other/pretendard-std/files/pretendard-std-latin-200-normal.woff2 new file mode 100644 index 00000000000..f012956c058 Binary files /dev/null and b/fonts/other/pretendard-std/files/pretendard-std-latin-200-normal.woff2 differ diff --git a/fonts/other/pretendard-std/files/pretendard-std-latin-300-normal.woff b/fonts/other/pretendard-std/files/pretendard-std-latin-300-normal.woff new file mode 100644 index 00000000000..9991def4e74 Binary files /dev/null and b/fonts/other/pretendard-std/files/pretendard-std-latin-300-normal.woff differ diff --git a/fonts/other/pretendard-std/files/pretendard-std-latin-300-normal.woff2 b/fonts/other/pretendard-std/files/pretendard-std-latin-300-normal.woff2 new file mode 100644 index 00000000000..38b791d644c Binary files /dev/null and b/fonts/other/pretendard-std/files/pretendard-std-latin-300-normal.woff2 differ diff --git a/fonts/other/pretendard-std/files/pretendard-std-latin-400-normal.woff b/fonts/other/pretendard-std/files/pretendard-std-latin-400-normal.woff new file mode 100644 index 00000000000..fb9b5c6c7bf Binary files /dev/null and b/fonts/other/pretendard-std/files/pretendard-std-latin-400-normal.woff differ diff --git a/fonts/other/pretendard-std/files/pretendard-std-latin-400-normal.woff2 b/fonts/other/pretendard-std/files/pretendard-std-latin-400-normal.woff2 new file mode 100644 index 00000000000..531b0a139eb Binary files /dev/null and b/fonts/other/pretendard-std/files/pretendard-std-latin-400-normal.woff2 differ diff --git a/fonts/other/pretendard-std/files/pretendard-std-latin-500-normal.woff b/fonts/other/pretendard-std/files/pretendard-std-latin-500-normal.woff new file mode 100644 index 00000000000..1037d685e5c Binary files /dev/null and b/fonts/other/pretendard-std/files/pretendard-std-latin-500-normal.woff differ diff --git a/fonts/other/pretendard-std/files/pretendard-std-latin-500-normal.woff2 b/fonts/other/pretendard-std/files/pretendard-std-latin-500-normal.woff2 new file mode 100644 index 00000000000..b9e2c325c9f Binary files /dev/null and b/fonts/other/pretendard-std/files/pretendard-std-latin-500-normal.woff2 differ diff --git a/fonts/other/pretendard-std/files/pretendard-std-latin-600-normal.woff b/fonts/other/pretendard-std/files/pretendard-std-latin-600-normal.woff new file mode 100644 index 00000000000..1eda219bb0e Binary files /dev/null and b/fonts/other/pretendard-std/files/pretendard-std-latin-600-normal.woff differ diff --git a/fonts/other/pretendard-std/files/pretendard-std-latin-600-normal.woff2 b/fonts/other/pretendard-std/files/pretendard-std-latin-600-normal.woff2 new file mode 100644 index 00000000000..c265cf45f5d Binary files /dev/null and b/fonts/other/pretendard-std/files/pretendard-std-latin-600-normal.woff2 differ diff --git a/fonts/other/pretendard-std/files/pretendard-std-latin-700-normal.woff b/fonts/other/pretendard-std/files/pretendard-std-latin-700-normal.woff new file mode 100644 index 00000000000..9f410068476 Binary files /dev/null and b/fonts/other/pretendard-std/files/pretendard-std-latin-700-normal.woff differ diff --git a/fonts/other/pretendard-std/files/pretendard-std-latin-700-normal.woff2 b/fonts/other/pretendard-std/files/pretendard-std-latin-700-normal.woff2 new file mode 100644 index 00000000000..806634ebc80 Binary files /dev/null and b/fonts/other/pretendard-std/files/pretendard-std-latin-700-normal.woff2 differ diff --git a/fonts/other/pretendard-std/files/pretendard-std-latin-800-normal.woff b/fonts/other/pretendard-std/files/pretendard-std-latin-800-normal.woff new file mode 100644 index 00000000000..28252d91a42 Binary files /dev/null and b/fonts/other/pretendard-std/files/pretendard-std-latin-800-normal.woff differ diff --git a/fonts/other/pretendard-std/files/pretendard-std-latin-800-normal.woff2 b/fonts/other/pretendard-std/files/pretendard-std-latin-800-normal.woff2 new file mode 100644 index 00000000000..e6dd8487bbd Binary files /dev/null and b/fonts/other/pretendard-std/files/pretendard-std-latin-800-normal.woff2 differ diff --git a/fonts/other/pretendard-std/files/pretendard-std-latin-900-normal.woff b/fonts/other/pretendard-std/files/pretendard-std-latin-900-normal.woff new file mode 100644 index 00000000000..eeecfe0020c Binary files /dev/null and b/fonts/other/pretendard-std/files/pretendard-std-latin-900-normal.woff differ diff --git a/fonts/other/pretendard-std/files/pretendard-std-latin-900-normal.woff2 b/fonts/other/pretendard-std/files/pretendard-std-latin-900-normal.woff2 new file mode 100644 index 00000000000..1c832784fb8 Binary files /dev/null and b/fonts/other/pretendard-std/files/pretendard-std-latin-900-normal.woff2 differ diff --git a/fonts/other/pretendard-std/index.css b/fonts/other/pretendard-std/index.css new file mode 100644 index 00000000000..be9e4eb2a10 --- /dev/null +++ b/fonts/other/pretendard-std/index.css @@ -0,0 +1,8 @@ +/* pretendard-std-latin-400-normal */ +@font-face { + font-family: 'Pretendard Std'; + font-style: normal; + font-display: swap; + font-weight: 400; + src: url(./files/pretendard-std-latin-400-normal.woff2) format('woff2'), url(./files/pretendard-std-latin-400-normal.woff) format('woff'); +} \ No newline at end of file diff --git a/fonts/other/pretendard-std/latin-100.css b/fonts/other/pretendard-std/latin-100.css new file mode 100644 index 00000000000..e78a2bc96aa --- /dev/null +++ b/fonts/other/pretendard-std/latin-100.css @@ -0,0 +1,8 @@ +/* pretendard-std-latin-100-normal */ +@font-face { + font-family: 'Pretendard Std'; + font-style: normal; + font-display: swap; + font-weight: 100; + src: url(./files/pretendard-std-latin-100-normal.woff2) format('woff2'), url(./files/pretendard-std-latin-100-normal.woff) format('woff'); +} \ No newline at end of file diff --git a/fonts/other/pretendard-std/latin-200.css b/fonts/other/pretendard-std/latin-200.css new file mode 100644 index 00000000000..76c34292b96 --- /dev/null +++ b/fonts/other/pretendard-std/latin-200.css @@ -0,0 +1,8 @@ +/* pretendard-std-latin-200-normal */ +@font-face { + font-family: 'Pretendard Std'; + font-style: normal; + font-display: swap; + font-weight: 200; + src: url(./files/pretendard-std-latin-200-normal.woff2) format('woff2'), url(./files/pretendard-std-latin-200-normal.woff) format('woff'); +} \ No newline at end of file diff --git a/fonts/other/pretendard-std/latin-300.css b/fonts/other/pretendard-std/latin-300.css new file mode 100644 index 00000000000..f3266dbd169 --- /dev/null +++ b/fonts/other/pretendard-std/latin-300.css @@ -0,0 +1,8 @@ +/* pretendard-std-latin-300-normal */ +@font-face { + font-family: 'Pretendard Std'; + font-style: normal; + font-display: swap; + font-weight: 300; + src: url(./files/pretendard-std-latin-300-normal.woff2) format('woff2'), url(./files/pretendard-std-latin-300-normal.woff) format('woff'); +} \ No newline at end of file diff --git a/fonts/other/pretendard-std/latin-400.css b/fonts/other/pretendard-std/latin-400.css new file mode 100644 index 00000000000..be9e4eb2a10 --- /dev/null +++ b/fonts/other/pretendard-std/latin-400.css @@ -0,0 +1,8 @@ +/* pretendard-std-latin-400-normal */ +@font-face { + font-family: 'Pretendard Std'; + font-style: normal; + font-display: swap; + font-weight: 400; + src: url(./files/pretendard-std-latin-400-normal.woff2) format('woff2'), url(./files/pretendard-std-latin-400-normal.woff) format('woff'); +} \ No newline at end of file diff --git a/fonts/other/pretendard-std/latin-500.css b/fonts/other/pretendard-std/latin-500.css new file mode 100644 index 00000000000..0b1e9e7f047 --- /dev/null +++ b/fonts/other/pretendard-std/latin-500.css @@ -0,0 +1,8 @@ +/* pretendard-std-latin-500-normal */ +@font-face { + font-family: 'Pretendard Std'; + font-style: normal; + font-display: swap; + font-weight: 500; + src: url(./files/pretendard-std-latin-500-normal.woff2) format('woff2'), url(./files/pretendard-std-latin-500-normal.woff) format('woff'); +} \ No newline at end of file diff --git a/fonts/other/pretendard-std/latin-600.css b/fonts/other/pretendard-std/latin-600.css new file mode 100644 index 00000000000..5628feb4855 --- /dev/null +++ b/fonts/other/pretendard-std/latin-600.css @@ -0,0 +1,8 @@ +/* pretendard-std-latin-600-normal */ +@font-face { + font-family: 'Pretendard Std'; + font-style: normal; + font-display: swap; + font-weight: 600; + src: url(./files/pretendard-std-latin-600-normal.woff2) format('woff2'), url(./files/pretendard-std-latin-600-normal.woff) format('woff'); +} \ No newline at end of file diff --git a/fonts/other/pretendard-std/latin-700.css b/fonts/other/pretendard-std/latin-700.css new file mode 100644 index 00000000000..6ed117aa60c --- /dev/null +++ b/fonts/other/pretendard-std/latin-700.css @@ -0,0 +1,8 @@ +/* pretendard-std-latin-700-normal */ +@font-face { + font-family: 'Pretendard Std'; + font-style: normal; + font-display: swap; + font-weight: 700; + src: url(./files/pretendard-std-latin-700-normal.woff2) format('woff2'), url(./files/pretendard-std-latin-700-normal.woff) format('woff'); +} \ No newline at end of file diff --git a/fonts/other/pretendard-std/latin-800.css b/fonts/other/pretendard-std/latin-800.css new file mode 100644 index 00000000000..4c82f0baf15 --- /dev/null +++ b/fonts/other/pretendard-std/latin-800.css @@ -0,0 +1,8 @@ +/* pretendard-std-latin-800-normal */ +@font-face { + font-family: 'Pretendard Std'; + font-style: normal; + font-display: swap; + font-weight: 800; + src: url(./files/pretendard-std-latin-800-normal.woff2) format('woff2'), url(./files/pretendard-std-latin-800-normal.woff) format('woff'); +} \ No newline at end of file diff --git a/fonts/other/pretendard-std/latin-900.css b/fonts/other/pretendard-std/latin-900.css new file mode 100644 index 00000000000..0614e82460f --- /dev/null +++ b/fonts/other/pretendard-std/latin-900.css @@ -0,0 +1,8 @@ +/* pretendard-std-latin-900-normal */ +@font-face { + font-family: 'Pretendard Std'; + font-style: normal; + font-display: swap; + font-weight: 900; + src: url(./files/pretendard-std-latin-900-normal.woff2) format('woff2'), url(./files/pretendard-std-latin-900-normal.woff) format('woff'); +} \ No newline at end of file diff --git a/fonts/other/pretendard-std/latin.css b/fonts/other/pretendard-std/latin.css new file mode 100644 index 00000000000..49b85b68dfd --- /dev/null +++ b/fonts/other/pretendard-std/latin.css @@ -0,0 +1,80 @@ +/* pretendard-std-latin-100-normal */ +@font-face { + font-family: 'Pretendard Std'; + font-style: normal; + font-display: swap; + font-weight: 100; + src: url(./files/pretendard-std-latin-100-normal.woff2) format('woff2'), url(./files/pretendard-std-latin-100-normal.woff) format('woff'); +} + +/* pretendard-std-latin-200-normal */ +@font-face { + font-family: 'Pretendard Std'; + font-style: normal; + font-display: swap; + font-weight: 200; + src: url(./files/pretendard-std-latin-200-normal.woff2) format('woff2'), url(./files/pretendard-std-latin-200-normal.woff) format('woff'); +} + +/* pretendard-std-latin-300-normal */ +@font-face { + font-family: 'Pretendard Std'; + font-style: normal; + font-display: swap; + font-weight: 300; + src: url(./files/pretendard-std-latin-300-normal.woff2) format('woff2'), url(./files/pretendard-std-latin-300-normal.woff) format('woff'); +} + +/* pretendard-std-latin-400-normal */ +@font-face { + font-family: 'Pretendard Std'; + font-style: normal; + font-display: swap; + font-weight: 400; + src: url(./files/pretendard-std-latin-400-normal.woff2) format('woff2'), url(./files/pretendard-std-latin-400-normal.woff) format('woff'); +} + +/* pretendard-std-latin-500-normal */ +@font-face { + font-family: 'Pretendard Std'; + font-style: normal; + font-display: swap; + font-weight: 500; + src: url(./files/pretendard-std-latin-500-normal.woff2) format('woff2'), url(./files/pretendard-std-latin-500-normal.woff) format('woff'); +} + +/* pretendard-std-latin-600-normal */ +@font-face { + font-family: 'Pretendard Std'; + font-style: normal; + font-display: swap; + font-weight: 600; + src: url(./files/pretendard-std-latin-600-normal.woff2) format('woff2'), url(./files/pretendard-std-latin-600-normal.woff) format('woff'); +} + +/* pretendard-std-latin-700-normal */ +@font-face { + font-family: 'Pretendard Std'; + font-style: normal; + font-display: swap; + font-weight: 700; + src: url(./files/pretendard-std-latin-700-normal.woff2) format('woff2'), url(./files/pretendard-std-latin-700-normal.woff) format('woff'); +} + +/* pretendard-std-latin-800-normal */ +@font-face { + font-family: 'Pretendard Std'; + font-style: normal; + font-display: swap; + font-weight: 800; + src: url(./files/pretendard-std-latin-800-normal.woff2) format('woff2'), url(./files/pretendard-std-latin-800-normal.woff) format('woff'); +} + +/* pretendard-std-latin-900-normal */ +@font-face { + font-family: 'Pretendard Std'; + font-style: normal; + font-display: swap; + font-weight: 900; + src: url(./files/pretendard-std-latin-900-normal.woff2) format('woff2'), url(./files/pretendard-std-latin-900-normal.woff) format('woff'); +} \ No newline at end of file diff --git a/fonts/other/pretendard-std/metadata.json b/fonts/other/pretendard-std/metadata.json new file mode 100644 index 00000000000..6c344b80a25 --- /dev/null +++ b/fonts/other/pretendard-std/metadata.json @@ -0,0 +1,19 @@ +{ + "id": "pretendard-std", + "family": "Pretendard Std", + "subsets": ["latin"], + "weights": [100, 200, 300, 400, 500, 600, 700, 800, 900], + "styles": ["normal"], + "defSubset": "latin", + "variable": false, + "lastModified": "2026-04-22", + "version": "v1.3.9", + "category": "sans-serif", + "license": { + "type": "OFL-1.1", + "url": "https://github.com/orioncactus/pretendard/blob/main/LICENSE", + "attribution": "2021 Kil Hyung-jin, 2014-2021 Adobe, 2016 The Inter Project Authors, 2021 The M+ FONTS Project Authors" + }, + "source": "https://github.com/orioncactus/pretendard", + "type": "other" +} \ No newline at end of file diff --git a/fonts/other/pretendard-std/package.json b/fonts/other/pretendard-std/package.json new file mode 100644 index 00000000000..5b9fac039a2 --- /dev/null +++ b/fonts/other/pretendard-std/package.json @@ -0,0 +1,46 @@ +{ + "name": "@fontsource/pretendard-std", + "version": "5.2.0", + "description": "Self-host the Pretendard Std font in a neatly bundled NPM package.", + "main": "index.css", + "publishConfig": {"access": "public"}, + "keywords": [ + "fontsource", + "font", + "font family", + "google fonts", + "pretendard-std", + "Pretendard Std", + "css", + "sass", + "front-end", + "web", + "typeface", + "variable" + ], + "exports": { + ".": {"sass": "./index.css", "default": "./index.css"}, + "./LICENSE": "./LICENSE", + "./*": {"sass": "./*.css", "default": "./*.css"}, + "./*.css": {"sass": "./*.css", "default": "./*.css"}, + "./files/*": {"sass": "./files/*", "default": "./files/*"}, + "./files/*.woff": {"sass": "./files/*.woff", "default": "./files/*.woff"}, + "./files/*.woff2": { + "sass": "./files/*.woff2", + "default": "./files/*.woff2" + }, + "./package.json": "./package.json", + "./metadata.json": "./metadata.json", + "./unicode.json": "./unicode.json", + "./scss": {"sass": "./scss/metadata.scss"} + }, + "author": "2021 Kil Hyung-jin, 2014-2021 Adobe, 2016 The Inter Project Authors, 2021 The M+ FONTS Project Authors", + "license": "OFL-1.1", + "homepage": "https://fontsource.org/fonts/pretendard-std", + "funding": "https://github.com/sponsors/ayuhito", + "repository": { + "type": "git", + "url": "git+https://github.com/fontsource/font-files.git", + "directory": "fonts/other/pretendard-std" + } +} \ No newline at end of file diff --git a/fonts/other/pretendard-std/scss/metadata.scss b/fonts/other/pretendard-std/scss/metadata.scss new file mode 100644 index 00000000000..ff870499e62 --- /dev/null +++ b/fonts/other/pretendard-std/scss/metadata.scss @@ -0,0 +1,26 @@ +$id: 'pretendard-std'; +$family: 'Pretendard Std'; +$category: sans-serif; +$subsets: (latin); +$weights: (100, 200, 300, 400, 500, 600, 700, 800, 900); +$styles: (normal); +$axes: null; +$defaults: ( + subset: latin, + weight: 400, + style: normal, + axis: null, +); +$unicode: null; + +$metadata: ( + id: $id, + family: $family, + category: $category, + subsets: $subsets, + weights: $weights, + styles: $styles, + axes: $axes, + defaults: $defaults, + unicode: $unicode, +) !default; \ No newline at end of file diff --git a/fonts/other/pretendard-std/scss/mixins.scss b/fonts/other/pretendard-std/scss/mixins.scss new file mode 100644 index 00000000000..8388db5ae63 --- /dev/null +++ b/fonts/other/pretendard-std/scss/mixins.scss @@ -0,0 +1,193 @@ +@use 'sass:list'; +@use 'sass:map'; +@use 'sass:math'; +@use 'sass:meta'; +@use 'sass:string'; + +@use 'metadata'; + +$metadata: metadata.$metadata !default; +$directory: null !default; + +$family: null !default; +$display: null !default; +$formats: null !default; +$subsets: null !default; +$weights: null !default; +$styles: null !default; +$axes: null !default; + +// Deprecated +$displayVar: null !default; + +@mixin generator( + $metadata: $metadata, + $directory: $directory, + $family: $family, + $display: $display, + $formats: $formats, + $subsets: $subsets, + $weights: $weights, + $styles: $styles, + $axes: $axes, + + // Deprecated + $displayVar: $displayVar +) { + @warn "Importing mixins via the fontsource package is deprecated and will be removed in the next major release. Please use the @fontsource-utils/scss package instead."; + + @if $displayVar != null { + @warn "$displayVar is deprecated due to the limitation of using css variables in @font-face (https://github.com/fontsource/fontsource/issues/726)."; + } + + $isVariable: map.get($metadata, axes) != null; + + $directory: if( + $directory, + $directory, + '~@fontsource#{if($isVariable, '-variable', '')}/#{map.get($metadata, id)}/files' + ); + + $family: if($family, $family, map.get($metadata, family) + if($isVariable, ' Variable', '')); + $display: if($display, $display, swap); + $formats: if(not $formats or $formats == all, if($isVariable, woff2, (woff2, woff)), $formats); + $subsets: if( + $subsets, + if($subsets == all, map.get($metadata, subsets), $subsets), + map.get($metadata, subsets) + ); + $weights: if( + $weights, + if($weights == all, map.get($metadata, weights), $weights), + map.get($metadata, defaults, weight) + ); + $styles: if( + $styles, + if($styles == all, map.get($metadata, styles), $styles), + map.get($metadata, defaults, style) + ); + $axes: if( + $axes, + if($axes == all, full, $axes), + if($isVariable, if(map.has-key($metadata, axes, wght), wght, full), null) + ); + + @each $subset in $subsets { + @each $unicodeSubset, $unicodeRange in map.get($metadata, unicode) { + // If condition is true, generate faces for the current subset + @if ( + // If there is no unicode information for the font or + ($unicodeSubset == null) or + // If the subset match a unicode subset or + ($subset == $unicodeSubset) or + ( + // If $unicodeSubset is a numeric unicode subset + // and current subset exists in the list of font subsets but does not match any unicode subset + // then generate faces for this numeric unicode subset as it is representing part of the current subset + list.index(map.get($metadata, subsets), $subset) and not + map.has-key($metadata, unicode, $subset) and not + list.index(map.get($metadata, subsets), $unicodeSubset) + ) + ) { + @each $weight in if($axes, null, $weights) { + @each $axis in $axes { + @each $style in $styles { + $variant: '#{map.get($metadata, id)}-#{if($unicodeSubset, $unicodeSubset, $subset)}-#{if($axis, $axis, $weight)}-#{$style}'; + + $src: (); + @each $format in $formats { + $src: list.append( + $src, + url('#{$directory}/#{$variant}.#{$format}') + format('#{$format}#{if($axis, '-variations', '')}'), + comma + ); + } + + @content (( + metadata: $metadata, + directory: $directory, + family: $family, + display: $display, + formats: $formats, + subsets: $subsets, + weights: $weights, + styles: $styles, + axes: $axes, + + variant: $variant, + subset: $subset, + unicodeSubset: $unicodeSubset, + unicodeRange: $unicodeRange, + weight: $weight, + axis: $axis, + style: $style, + + font-family: string.quote($family), + font-style: if( + (($axis == full) or ($axis == slnt)) and map.has-key($metadata, axes, slnt), + oblique map.get($metadata, axes, slnt, min) + deg map.get($metadata, axes, slnt, max) + deg, + $style + ), + font-display: $display, + font-weight: if( + (($axis == full) or ($axis == wght)) and map.has-key($metadata, axes, wght), + map.get($metadata, axes, wght, min) map.get($metadata, axes, wght, max), + $weight + ), + font-stretch: if( + (($axis == full) or ($axis == wdth)) and map.has-key($metadata, axes, wdth), + '#{map.get($metadata, axes, wdth, min)}% #{map.get($metadata, axes, wdth, max)}%', + null + ), + src: $src, + unicode-range: $unicodeRange, + )); + } + } + } + } + } + } +} + +@mixin faces( + $metadata: $metadata, + $directory: $directory, + $family: $family, + $display: $display, + $formats: $formats, + $subsets: $subsets, + $weights: $weights, + $styles: $styles, + $axes: $axes, + + // Deprecated + $displayVar: $displayVar +) { + @include generator( + $metadata: $metadata, + $directory: $directory, + $family: $family, + $display: $display, + $formats: $formats, + $subsets: $subsets, + $weights: $weights, + $styles: $styles, + $axes: $axes, + + $displayVar: $displayVar + ) + using ($props) { + /* #{map.get($props, variant)} */ + @font-face { + font-family: map.get($props, font-family); + font-style: map.get($props, font-style); + font-display: map.get($props, font-display); + font-weight: map.get($props, font-weight); + font-stretch: map.get($props, font-stretch); + unicode-range: map.get($props, unicode-range); + src: map.get($props, src); + } + } +} diff --git a/fonts/other/pretendard-std/unicode.json b/fonts/other/pretendard-std/unicode.json new file mode 100644 index 00000000000..9e26dfeeb6e --- /dev/null +++ b/fonts/other/pretendard-std/unicode.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/fonts/variable/pretendard-gov/CHANGELOG.md b/fonts/variable/pretendard-gov/CHANGELOG.md new file mode 100644 index 00000000000..e798685bbf8 --- /dev/null +++ b/fonts/variable/pretendard-gov/CHANGELOG.md @@ -0,0 +1,2 @@ +# Changelog +See the [Fontsource CHANGELOG.md](https://github.com/fontsource/fontsource/blob/main/CHANGELOG.md). \ No newline at end of file diff --git a/fonts/variable/pretendard-gov/LICENSE b/fonts/variable/pretendard-gov/LICENSE new file mode 100644 index 00000000000..160421b6039 --- /dev/null +++ b/fonts/variable/pretendard-gov/LICENSE @@ -0,0 +1,104 @@ +Copyright (c) 2021, Kil Hyung-jin (https://github.com/orioncactus/pretendard), +with Reserved Font Name 'Pretendard'. + +Copyright 2014-2021 Adobe (http://www.adobe.com/), +with Reserved Font Name 'Source'. +Source is a trademark of Adobe in the United States and/or other countries. + +Copyright (c) 2016 The Inter Project Authors (https://github.com/rsms/inter), +with Reserved Font Name 'Inter'. + +Copyright 2021 The M+ FONTS Project Authors (https://github.com/coz-m/MPLUS_FONTS), +with Reserved Font Name 'M PLUS 1'. + +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: +https://scripts.sil.org/OFL + + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/fonts/variable/pretendard-gov/README.md b/fonts/variable/pretendard-gov/README.md new file mode 100644 index 00000000000..23814bba3fa --- /dev/null +++ b/fonts/variable/pretendard-gov/README.md @@ -0,0 +1,48 @@ +# Fontsource Pretendard GOV + +[![npm (scoped)](https://img.shields.io/npm/v/@fontsource-variable/pretendard-gov?color=brightgreen)](https://www.npmjs.com/package/@fontsource-variable/pretendard-gov) [![Generic badge](https://img.shields.io/badge/fontsource-passing-brightgreen)](https://github.com/fontsource/fontsource) [![Monthly downloads](https://badgen.net/npm/dm/@fontsource-variable/pretendard-gov)](https://github.com/fontsource/fontsource) [![Total downloads](https://badgen.net/npm/dt/@fontsource-variable/pretendard-gov)](https://github.com/fontsource/fontsource) [![GitHub stars](https://img.shields.io/github/stars/fontsource/fontsource.svg?style=social&label=Star)](https://github.com/fontsource/fontsource/stargazers) + +The CSS and web font files to easily self-host the “Pretendard GOV” variable font. Please visit the main [Fontsource website](https://fontsource.org/fonts/pretendard-gov) to view more details on this package. + +## Quick Installation + +Fontsource offers multiple methods to import the CSS, including using a bundler like Vite or using SASS. You can find full documentation [here](https://fontsource.org/docs/getting-started/introduction). + +```javascript +npm install @fontsource-variable/pretendard-gov +``` + +Within your app entry file or site component, import it in. + +```javascript +import "@fontsource-variable/pretendard-gov"; // Defaults to wght axis +import "@fontsource-variable/pretendard-gov/wght.css"; // Specify axis +import "@fontsource-variable/pretendard-gov/wght-italic.css"; // Specify axis and style +``` + +Supported variables: +- Weights: `[100,200,300,400,500,600,700,800,900]` +- Styles: `[normal]` +- Subsets: `[latin]` +- Axes: `[wght]` + +> Note: `italic` may not be supported by all fonts. To learn more about what weights and styles are supported, please visit the [Fontsource website](https://fontsource.org/fonts/pretendard-gov). + +Finally, you can reference the font name in a CSS stylesheet, CSS Module, or CSS-in-JS. + +```css +body { + font-family: "Pretendard GOV Variable"; +} +``` + +## Licensing +Always make sure to read the license for each font you use. Most of the fonts in the collection use the SIL Open Font License, v1.1. Some fonts use the Apache 2 license. The Ubuntu fonts use the Ubuntu Font License v1.0. + +2021 Kil Hyung-jin, 2014-2021 Adobe, 2016 The Inter Project Authors, 2021 The M+ FONTS Project Authors +[OFL-1.1](https://github.com/orioncactus/pretendard/blob/main/LICENSE) + +## Other Notes +Font version (provided by source): `v1.3.9`. + +If you have any suggestions or ideas to improve the performance of font loading or expand the existing library, feel free to star and contribute to this repository. You can share your suggestions or ideas by creating an [issue](https://github.com/fontsource/fontsource/issues). \ No newline at end of file diff --git a/fonts/variable/pretendard-gov/files/pretendard-gov-latin-wght-normal.woff2 b/fonts/variable/pretendard-gov/files/pretendard-gov-latin-wght-normal.woff2 new file mode 100644 index 00000000000..39432c2b9c7 Binary files /dev/null and b/fonts/variable/pretendard-gov/files/pretendard-gov-latin-wght-normal.woff2 differ diff --git a/fonts/variable/pretendard-gov/index.css b/fonts/variable/pretendard-gov/index.css new file mode 100644 index 00000000000..4a406e0cfa1 --- /dev/null +++ b/fonts/variable/pretendard-gov/index.css @@ -0,0 +1,8 @@ +/* pretendard-gov-latin-wght-normal */ +@font-face { + font-family: 'Pretendard GOV Variable'; + font-style: normal; + font-display: swap; + font-weight: 45 920; + src: url(./files/pretendard-gov-latin-wght-normal.woff2) format('woff2-variations'); +} \ No newline at end of file diff --git a/fonts/variable/pretendard-gov/metadata.json b/fonts/variable/pretendard-gov/metadata.json new file mode 100644 index 00000000000..48685567392 --- /dev/null +++ b/fonts/variable/pretendard-gov/metadata.json @@ -0,0 +1,21 @@ +{ + "id": "pretendard-gov", + "family": "Pretendard GOV", + "subsets": ["latin"], + "weights": [100, 200, 300, 400, 500, 600, 700, 800, 900], + "styles": ["normal"], + "defSubset": "latin", + "variable": { + "wght": {"default": "400", "min": "45", "max": "920", "step": "1"} + }, + "lastModified": "2026-04-22", + "version": "v1.3.9", + "category": "sans-serif", + "license": { + "type": "OFL-1.1", + "url": "https://github.com/orioncactus/pretendard/blob/main/LICENSE", + "attribution": "2021 Kil Hyung-jin, 2014-2021 Adobe, 2016 The Inter Project Authors, 2021 The M+ FONTS Project Authors" + }, + "source": "https://github.com/orioncactus/pretendard", + "type": "other" +} \ No newline at end of file diff --git a/fonts/variable/pretendard-gov/package.json b/fonts/variable/pretendard-gov/package.json new file mode 100644 index 00000000000..fe0bbd2569c --- /dev/null +++ b/fonts/variable/pretendard-gov/package.json @@ -0,0 +1,46 @@ +{ + "name": "@fontsource-variable/pretendard-gov", + "version": "5.2.0", + "description": "Self-host the Pretendard GOV font in a neatly bundled NPM package.", + "main": "index.css", + "publishConfig": {"access": "public"}, + "keywords": [ + "fontsource", + "font", + "font family", + "google fonts", + "pretendard-gov", + "Pretendard GOV", + "css", + "sass", + "front-end", + "web", + "typeface", + "variable" + ], + "exports": { + ".": {"sass": "./index.css", "default": "./index.css"}, + "./LICENSE": "./LICENSE", + "./*": {"sass": "./*.css", "default": "./*.css"}, + "./*.css": {"sass": "./*.css", "default": "./*.css"}, + "./files/*": {"sass": "./files/*", "default": "./files/*"}, + "./files/*.woff": {"sass": "./files/*.woff", "default": "./files/*.woff"}, + "./files/*.woff2": { + "sass": "./files/*.woff2", + "default": "./files/*.woff2" + }, + "./package.json": "./package.json", + "./metadata.json": "./metadata.json", + "./unicode.json": "./unicode.json", + "./scss": {"sass": "./scss/metadata.scss"} + }, + "author": "2021 Kil Hyung-jin, 2014-2021 Adobe, 2016 The Inter Project Authors, 2021 The M+ FONTS Project Authors", + "license": "OFL-1.1", + "homepage": "https://fontsource.org/fonts/pretendard-gov", + "funding": "https://github.com/sponsors/ayuhito", + "repository": { + "type": "git", + "url": "git+https://github.com/fontsource/font-files.git", + "directory": "fonts/other/pretendard-gov" + } +} \ No newline at end of file diff --git a/fonts/variable/pretendard-gov/scss/metadata.scss b/fonts/variable/pretendard-gov/scss/metadata.scss new file mode 100644 index 00000000000..a310c1c8d66 --- /dev/null +++ b/fonts/variable/pretendard-gov/scss/metadata.scss @@ -0,0 +1,33 @@ +$id: 'pretendard-gov'; +$family: 'Pretendard GOV'; +$category: sans-serif; +$subsets: (latin); +$weights: (100, 200, 300, 400, 500, 600, 700, 800, 900); +$styles: (normal); +$axes: ( + wght: ( + default: 400, + min: 45, + max: 920, + step: 1, + ), +); +$defaults: ( + subset: latin, + weight: 400, + style: normal, + axis: wght, +); +$unicode: null; + +$metadata: ( + id: $id, + family: $family, + category: $category, + subsets: $subsets, + weights: $weights, + styles: $styles, + axes: $axes, + defaults: $defaults, + unicode: $unicode, +) !default; \ No newline at end of file diff --git a/fonts/variable/pretendard-gov/scss/mixins.scss b/fonts/variable/pretendard-gov/scss/mixins.scss new file mode 100644 index 00000000000..8388db5ae63 --- /dev/null +++ b/fonts/variable/pretendard-gov/scss/mixins.scss @@ -0,0 +1,193 @@ +@use 'sass:list'; +@use 'sass:map'; +@use 'sass:math'; +@use 'sass:meta'; +@use 'sass:string'; + +@use 'metadata'; + +$metadata: metadata.$metadata !default; +$directory: null !default; + +$family: null !default; +$display: null !default; +$formats: null !default; +$subsets: null !default; +$weights: null !default; +$styles: null !default; +$axes: null !default; + +// Deprecated +$displayVar: null !default; + +@mixin generator( + $metadata: $metadata, + $directory: $directory, + $family: $family, + $display: $display, + $formats: $formats, + $subsets: $subsets, + $weights: $weights, + $styles: $styles, + $axes: $axes, + + // Deprecated + $displayVar: $displayVar +) { + @warn "Importing mixins via the fontsource package is deprecated and will be removed in the next major release. Please use the @fontsource-utils/scss package instead."; + + @if $displayVar != null { + @warn "$displayVar is deprecated due to the limitation of using css variables in @font-face (https://github.com/fontsource/fontsource/issues/726)."; + } + + $isVariable: map.get($metadata, axes) != null; + + $directory: if( + $directory, + $directory, + '~@fontsource#{if($isVariable, '-variable', '')}/#{map.get($metadata, id)}/files' + ); + + $family: if($family, $family, map.get($metadata, family) + if($isVariable, ' Variable', '')); + $display: if($display, $display, swap); + $formats: if(not $formats or $formats == all, if($isVariable, woff2, (woff2, woff)), $formats); + $subsets: if( + $subsets, + if($subsets == all, map.get($metadata, subsets), $subsets), + map.get($metadata, subsets) + ); + $weights: if( + $weights, + if($weights == all, map.get($metadata, weights), $weights), + map.get($metadata, defaults, weight) + ); + $styles: if( + $styles, + if($styles == all, map.get($metadata, styles), $styles), + map.get($metadata, defaults, style) + ); + $axes: if( + $axes, + if($axes == all, full, $axes), + if($isVariable, if(map.has-key($metadata, axes, wght), wght, full), null) + ); + + @each $subset in $subsets { + @each $unicodeSubset, $unicodeRange in map.get($metadata, unicode) { + // If condition is true, generate faces for the current subset + @if ( + // If there is no unicode information for the font or + ($unicodeSubset == null) or + // If the subset match a unicode subset or + ($subset == $unicodeSubset) or + ( + // If $unicodeSubset is a numeric unicode subset + // and current subset exists in the list of font subsets but does not match any unicode subset + // then generate faces for this numeric unicode subset as it is representing part of the current subset + list.index(map.get($metadata, subsets), $subset) and not + map.has-key($metadata, unicode, $subset) and not + list.index(map.get($metadata, subsets), $unicodeSubset) + ) + ) { + @each $weight in if($axes, null, $weights) { + @each $axis in $axes { + @each $style in $styles { + $variant: '#{map.get($metadata, id)}-#{if($unicodeSubset, $unicodeSubset, $subset)}-#{if($axis, $axis, $weight)}-#{$style}'; + + $src: (); + @each $format in $formats { + $src: list.append( + $src, + url('#{$directory}/#{$variant}.#{$format}') + format('#{$format}#{if($axis, '-variations', '')}'), + comma + ); + } + + @content (( + metadata: $metadata, + directory: $directory, + family: $family, + display: $display, + formats: $formats, + subsets: $subsets, + weights: $weights, + styles: $styles, + axes: $axes, + + variant: $variant, + subset: $subset, + unicodeSubset: $unicodeSubset, + unicodeRange: $unicodeRange, + weight: $weight, + axis: $axis, + style: $style, + + font-family: string.quote($family), + font-style: if( + (($axis == full) or ($axis == slnt)) and map.has-key($metadata, axes, slnt), + oblique map.get($metadata, axes, slnt, min) + deg map.get($metadata, axes, slnt, max) + deg, + $style + ), + font-display: $display, + font-weight: if( + (($axis == full) or ($axis == wght)) and map.has-key($metadata, axes, wght), + map.get($metadata, axes, wght, min) map.get($metadata, axes, wght, max), + $weight + ), + font-stretch: if( + (($axis == full) or ($axis == wdth)) and map.has-key($metadata, axes, wdth), + '#{map.get($metadata, axes, wdth, min)}% #{map.get($metadata, axes, wdth, max)}%', + null + ), + src: $src, + unicode-range: $unicodeRange, + )); + } + } + } + } + } + } +} + +@mixin faces( + $metadata: $metadata, + $directory: $directory, + $family: $family, + $display: $display, + $formats: $formats, + $subsets: $subsets, + $weights: $weights, + $styles: $styles, + $axes: $axes, + + // Deprecated + $displayVar: $displayVar +) { + @include generator( + $metadata: $metadata, + $directory: $directory, + $family: $family, + $display: $display, + $formats: $formats, + $subsets: $subsets, + $weights: $weights, + $styles: $styles, + $axes: $axes, + + $displayVar: $displayVar + ) + using ($props) { + /* #{map.get($props, variant)} */ + @font-face { + font-family: map.get($props, font-family); + font-style: map.get($props, font-style); + font-display: map.get($props, font-display); + font-weight: map.get($props, font-weight); + font-stretch: map.get($props, font-stretch); + unicode-range: map.get($props, unicode-range); + src: map.get($props, src); + } + } +} diff --git a/fonts/variable/pretendard-gov/unicode.json b/fonts/variable/pretendard-gov/unicode.json new file mode 100644 index 00000000000..9e26dfeeb6e --- /dev/null +++ b/fonts/variable/pretendard-gov/unicode.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/fonts/variable/pretendard-gov/wght.css b/fonts/variable/pretendard-gov/wght.css new file mode 100644 index 00000000000..4a406e0cfa1 --- /dev/null +++ b/fonts/variable/pretendard-gov/wght.css @@ -0,0 +1,8 @@ +/* pretendard-gov-latin-wght-normal */ +@font-face { + font-family: 'Pretendard GOV Variable'; + font-style: normal; + font-display: swap; + font-weight: 45 920; + src: url(./files/pretendard-gov-latin-wght-normal.woff2) format('woff2-variations'); +} \ No newline at end of file diff --git a/fonts/variable/pretendard-jp/CHANGELOG.md b/fonts/variable/pretendard-jp/CHANGELOG.md new file mode 100644 index 00000000000..e798685bbf8 --- /dev/null +++ b/fonts/variable/pretendard-jp/CHANGELOG.md @@ -0,0 +1,2 @@ +# Changelog +See the [Fontsource CHANGELOG.md](https://github.com/fontsource/fontsource/blob/main/CHANGELOG.md). \ No newline at end of file diff --git a/fonts/variable/pretendard-jp/LICENSE b/fonts/variable/pretendard-jp/LICENSE new file mode 100644 index 00000000000..160421b6039 --- /dev/null +++ b/fonts/variable/pretendard-jp/LICENSE @@ -0,0 +1,104 @@ +Copyright (c) 2021, Kil Hyung-jin (https://github.com/orioncactus/pretendard), +with Reserved Font Name 'Pretendard'. + +Copyright 2014-2021 Adobe (http://www.adobe.com/), +with Reserved Font Name 'Source'. +Source is a trademark of Adobe in the United States and/or other countries. + +Copyright (c) 2016 The Inter Project Authors (https://github.com/rsms/inter), +with Reserved Font Name 'Inter'. + +Copyright 2021 The M+ FONTS Project Authors (https://github.com/coz-m/MPLUS_FONTS), +with Reserved Font Name 'M PLUS 1'. + +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: +https://scripts.sil.org/OFL + + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/fonts/variable/pretendard-jp/README.md b/fonts/variable/pretendard-jp/README.md new file mode 100644 index 00000000000..e7d367253bc --- /dev/null +++ b/fonts/variable/pretendard-jp/README.md @@ -0,0 +1,48 @@ +# Fontsource Pretendard JP + +[![npm (scoped)](https://img.shields.io/npm/v/@fontsource-variable/pretendard-jp?color=brightgreen)](https://www.npmjs.com/package/@fontsource-variable/pretendard-jp) [![Generic badge](https://img.shields.io/badge/fontsource-passing-brightgreen)](https://github.com/fontsource/fontsource) [![Monthly downloads](https://badgen.net/npm/dm/@fontsource-variable/pretendard-jp)](https://github.com/fontsource/fontsource) [![Total downloads](https://badgen.net/npm/dt/@fontsource-variable/pretendard-jp)](https://github.com/fontsource/fontsource) [![GitHub stars](https://img.shields.io/github/stars/fontsource/fontsource.svg?style=social&label=Star)](https://github.com/fontsource/fontsource/stargazers) + +The CSS and web font files to easily self-host the “Pretendard JP” variable font. Please visit the main [Fontsource website](https://fontsource.org/fonts/pretendard-jp) to view more details on this package. + +## Quick Installation + +Fontsource offers multiple methods to import the CSS, including using a bundler like Vite or using SASS. You can find full documentation [here](https://fontsource.org/docs/getting-started/introduction). + +```javascript +npm install @fontsource-variable/pretendard-jp +``` + +Within your app entry file or site component, import it in. + +```javascript +import "@fontsource-variable/pretendard-jp"; // Defaults to wght axis +import "@fontsource-variable/pretendard-jp/wght.css"; // Specify axis +import "@fontsource-variable/pretendard-jp/wght-italic.css"; // Specify axis and style +``` + +Supported variables: +- Weights: `[100,200,300,400,500,600,700,800,900]` +- Styles: `[normal]` +- Subsets: `[latin]` +- Axes: `[wght]` + +> Note: `italic` may not be supported by all fonts. To learn more about what weights and styles are supported, please visit the [Fontsource website](https://fontsource.org/fonts/pretendard-jp). + +Finally, you can reference the font name in a CSS stylesheet, CSS Module, or CSS-in-JS. + +```css +body { + font-family: "Pretendard JP Variable"; +} +``` + +## Licensing +Always make sure to read the license for each font you use. Most of the fonts in the collection use the SIL Open Font License, v1.1. Some fonts use the Apache 2 license. The Ubuntu fonts use the Ubuntu Font License v1.0. + +Kil Hyung-jin, Adobe, The Inter Project Authors, The M+ FONTS Project Authors +[OFL-1.1](https://github.com/orioncactus/pretendard/blob/main/LICENSE) + +## Other Notes +Font version (provided by source): `v1.3.9`. + +If you have any suggestions or ideas to improve the performance of font loading or expand the existing library, feel free to star and contribute to this repository. You can share your suggestions or ideas by creating an [issue](https://github.com/fontsource/fontsource/issues). \ No newline at end of file diff --git a/fonts/variable/pretendard-jp/files/pretendard-jp-latin-wght-normal.woff2 b/fonts/variable/pretendard-jp/files/pretendard-jp-latin-wght-normal.woff2 new file mode 100644 index 00000000000..0b11784f568 Binary files /dev/null and b/fonts/variable/pretendard-jp/files/pretendard-jp-latin-wght-normal.woff2 differ diff --git a/fonts/variable/pretendard-jp/index.css b/fonts/variable/pretendard-jp/index.css new file mode 100644 index 00000000000..0bc5335decd --- /dev/null +++ b/fonts/variable/pretendard-jp/index.css @@ -0,0 +1,8 @@ +/* pretendard-jp-latin-wght-normal */ +@font-face { + font-family: 'Pretendard JP Variable'; + font-style: normal; + font-display: swap; + font-weight: 45 920; + src: url(./files/pretendard-jp-latin-wght-normal.woff2) format('woff2-variations'); +} \ No newline at end of file diff --git a/fonts/variable/pretendard-jp/metadata.json b/fonts/variable/pretendard-jp/metadata.json new file mode 100644 index 00000000000..ca87fe7e5a9 --- /dev/null +++ b/fonts/variable/pretendard-jp/metadata.json @@ -0,0 +1,21 @@ +{ + "id": "pretendard-jp", + "family": "Pretendard JP", + "subsets": ["latin"], + "weights": [100, 200, 300, 400, 500, 600, 700, 800, 900], + "styles": ["normal"], + "defSubset": "latin", + "variable": { + "wght": {"default": "400", "min": "45", "max": "920", "step": "1"} + }, + "lastModified": "2026-04-22", + "version": "v1.3.9", + "category": "sans-serif", + "license": { + "type": "OFL-1.1", + "url": "https://github.com/orioncactus/pretendard/blob/main/LICENSE", + "attribution": "2021 Kil Hyung-jin, 2014-2021 Adobe, 2016 The Inter Project Authors, 2021 The M+ FONTS Project Authors" + }, + "source": "https://github.com/orioncactus/pretendard", + "type": "other" +} \ No newline at end of file diff --git a/fonts/variable/pretendard-jp/package.json b/fonts/variable/pretendard-jp/package.json new file mode 100644 index 00000000000..957194ee23a --- /dev/null +++ b/fonts/variable/pretendard-jp/package.json @@ -0,0 +1,46 @@ +{ + "name": "@fontsource-variable/pretendard-jp", + "version": "5.2.0", + "description": "Self-host the Pretendard JP font in a neatly bundled NPM package.", + "main": "index.css", + "publishConfig": {"access": "public"}, + "keywords": [ + "fontsource", + "font", + "font family", + "google fonts", + "pretendard-jp", + "Pretendard JP", + "css", + "sass", + "front-end", + "web", + "typeface", + "variable" + ], + "exports": { + ".": {"sass": "./index.css", "default": "./index.css"}, + "./LICENSE": "./LICENSE", + "./*": {"sass": "./*.css", "default": "./*.css"}, + "./*.css": {"sass": "./*.css", "default": "./*.css"}, + "./files/*": {"sass": "./files/*", "default": "./files/*"}, + "./files/*.woff": {"sass": "./files/*.woff", "default": "./files/*.woff"}, + "./files/*.woff2": { + "sass": "./files/*.woff2", + "default": "./files/*.woff2" + }, + "./package.json": "./package.json", + "./metadata.json": "./metadata.json", + "./unicode.json": "./unicode.json", + "./scss": {"sass": "./scss/metadata.scss"} + }, + "author": "2021 Kil Hyung-jin, 2014-2021 Adobe, 2016 The Inter Project Authors, 2021 The M+ FONTS Project Authors", + "license": "OFL-1.1", + "homepage": "https://fontsource.org/fonts/pretendard-jp", + "funding": "https://github.com/sponsors/ayuhito", + "repository": { + "type": "git", + "url": "git+https://github.com/fontsource/font-files.git", + "directory": "fonts/other/pretendard-jp" + } +} \ No newline at end of file diff --git a/fonts/variable/pretendard-jp/scss/metadata.scss b/fonts/variable/pretendard-jp/scss/metadata.scss new file mode 100644 index 00000000000..5f62176246e --- /dev/null +++ b/fonts/variable/pretendard-jp/scss/metadata.scss @@ -0,0 +1,33 @@ +$id: 'pretendard-jp'; +$family: 'Pretendard JP'; +$category: sans-serif; +$subsets: (latin); +$weights: (100, 200, 300, 400, 500, 600, 700, 800, 900); +$styles: (normal); +$axes: ( + wght: ( + default: 400, + min: 45, + max: 920, + step: 1, + ), +); +$defaults: ( + subset: latin, + weight: 400, + style: normal, + axis: wght, +); +$unicode: null; + +$metadata: ( + id: $id, + family: $family, + category: $category, + subsets: $subsets, + weights: $weights, + styles: $styles, + axes: $axes, + defaults: $defaults, + unicode: $unicode, +) !default; \ No newline at end of file diff --git a/fonts/variable/pretendard-jp/scss/mixins.scss b/fonts/variable/pretendard-jp/scss/mixins.scss new file mode 100644 index 00000000000..8388db5ae63 --- /dev/null +++ b/fonts/variable/pretendard-jp/scss/mixins.scss @@ -0,0 +1,193 @@ +@use 'sass:list'; +@use 'sass:map'; +@use 'sass:math'; +@use 'sass:meta'; +@use 'sass:string'; + +@use 'metadata'; + +$metadata: metadata.$metadata !default; +$directory: null !default; + +$family: null !default; +$display: null !default; +$formats: null !default; +$subsets: null !default; +$weights: null !default; +$styles: null !default; +$axes: null !default; + +// Deprecated +$displayVar: null !default; + +@mixin generator( + $metadata: $metadata, + $directory: $directory, + $family: $family, + $display: $display, + $formats: $formats, + $subsets: $subsets, + $weights: $weights, + $styles: $styles, + $axes: $axes, + + // Deprecated + $displayVar: $displayVar +) { + @warn "Importing mixins via the fontsource package is deprecated and will be removed in the next major release. Please use the @fontsource-utils/scss package instead."; + + @if $displayVar != null { + @warn "$displayVar is deprecated due to the limitation of using css variables in @font-face (https://github.com/fontsource/fontsource/issues/726)."; + } + + $isVariable: map.get($metadata, axes) != null; + + $directory: if( + $directory, + $directory, + '~@fontsource#{if($isVariable, '-variable', '')}/#{map.get($metadata, id)}/files' + ); + + $family: if($family, $family, map.get($metadata, family) + if($isVariable, ' Variable', '')); + $display: if($display, $display, swap); + $formats: if(not $formats or $formats == all, if($isVariable, woff2, (woff2, woff)), $formats); + $subsets: if( + $subsets, + if($subsets == all, map.get($metadata, subsets), $subsets), + map.get($metadata, subsets) + ); + $weights: if( + $weights, + if($weights == all, map.get($metadata, weights), $weights), + map.get($metadata, defaults, weight) + ); + $styles: if( + $styles, + if($styles == all, map.get($metadata, styles), $styles), + map.get($metadata, defaults, style) + ); + $axes: if( + $axes, + if($axes == all, full, $axes), + if($isVariable, if(map.has-key($metadata, axes, wght), wght, full), null) + ); + + @each $subset in $subsets { + @each $unicodeSubset, $unicodeRange in map.get($metadata, unicode) { + // If condition is true, generate faces for the current subset + @if ( + // If there is no unicode information for the font or + ($unicodeSubset == null) or + // If the subset match a unicode subset or + ($subset == $unicodeSubset) or + ( + // If $unicodeSubset is a numeric unicode subset + // and current subset exists in the list of font subsets but does not match any unicode subset + // then generate faces for this numeric unicode subset as it is representing part of the current subset + list.index(map.get($metadata, subsets), $subset) and not + map.has-key($metadata, unicode, $subset) and not + list.index(map.get($metadata, subsets), $unicodeSubset) + ) + ) { + @each $weight in if($axes, null, $weights) { + @each $axis in $axes { + @each $style in $styles { + $variant: '#{map.get($metadata, id)}-#{if($unicodeSubset, $unicodeSubset, $subset)}-#{if($axis, $axis, $weight)}-#{$style}'; + + $src: (); + @each $format in $formats { + $src: list.append( + $src, + url('#{$directory}/#{$variant}.#{$format}') + format('#{$format}#{if($axis, '-variations', '')}'), + comma + ); + } + + @content (( + metadata: $metadata, + directory: $directory, + family: $family, + display: $display, + formats: $formats, + subsets: $subsets, + weights: $weights, + styles: $styles, + axes: $axes, + + variant: $variant, + subset: $subset, + unicodeSubset: $unicodeSubset, + unicodeRange: $unicodeRange, + weight: $weight, + axis: $axis, + style: $style, + + font-family: string.quote($family), + font-style: if( + (($axis == full) or ($axis == slnt)) and map.has-key($metadata, axes, slnt), + oblique map.get($metadata, axes, slnt, min) + deg map.get($metadata, axes, slnt, max) + deg, + $style + ), + font-display: $display, + font-weight: if( + (($axis == full) or ($axis == wght)) and map.has-key($metadata, axes, wght), + map.get($metadata, axes, wght, min) map.get($metadata, axes, wght, max), + $weight + ), + font-stretch: if( + (($axis == full) or ($axis == wdth)) and map.has-key($metadata, axes, wdth), + '#{map.get($metadata, axes, wdth, min)}% #{map.get($metadata, axes, wdth, max)}%', + null + ), + src: $src, + unicode-range: $unicodeRange, + )); + } + } + } + } + } + } +} + +@mixin faces( + $metadata: $metadata, + $directory: $directory, + $family: $family, + $display: $display, + $formats: $formats, + $subsets: $subsets, + $weights: $weights, + $styles: $styles, + $axes: $axes, + + // Deprecated + $displayVar: $displayVar +) { + @include generator( + $metadata: $metadata, + $directory: $directory, + $family: $family, + $display: $display, + $formats: $formats, + $subsets: $subsets, + $weights: $weights, + $styles: $styles, + $axes: $axes, + + $displayVar: $displayVar + ) + using ($props) { + /* #{map.get($props, variant)} */ + @font-face { + font-family: map.get($props, font-family); + font-style: map.get($props, font-style); + font-display: map.get($props, font-display); + font-weight: map.get($props, font-weight); + font-stretch: map.get($props, font-stretch); + unicode-range: map.get($props, unicode-range); + src: map.get($props, src); + } + } +} diff --git a/fonts/variable/pretendard-jp/unicode.json b/fonts/variable/pretendard-jp/unicode.json new file mode 100644 index 00000000000..9e26dfeeb6e --- /dev/null +++ b/fonts/variable/pretendard-jp/unicode.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/fonts/variable/pretendard-jp/wght.css b/fonts/variable/pretendard-jp/wght.css new file mode 100644 index 00000000000..0bc5335decd --- /dev/null +++ b/fonts/variable/pretendard-jp/wght.css @@ -0,0 +1,8 @@ +/* pretendard-jp-latin-wght-normal */ +@font-face { + font-family: 'Pretendard JP Variable'; + font-style: normal; + font-display: swap; + font-weight: 45 920; + src: url(./files/pretendard-jp-latin-wght-normal.woff2) format('woff2-variations'); +} \ No newline at end of file diff --git a/fonts/variable/pretendard-std/CHANGELOG.md b/fonts/variable/pretendard-std/CHANGELOG.md new file mode 100644 index 00000000000..e798685bbf8 --- /dev/null +++ b/fonts/variable/pretendard-std/CHANGELOG.md @@ -0,0 +1,2 @@ +# Changelog +See the [Fontsource CHANGELOG.md](https://github.com/fontsource/fontsource/blob/main/CHANGELOG.md). \ No newline at end of file diff --git a/fonts/variable/pretendard-std/LICENSE b/fonts/variable/pretendard-std/LICENSE new file mode 100644 index 00000000000..160421b6039 --- /dev/null +++ b/fonts/variable/pretendard-std/LICENSE @@ -0,0 +1,104 @@ +Copyright (c) 2021, Kil Hyung-jin (https://github.com/orioncactus/pretendard), +with Reserved Font Name 'Pretendard'. + +Copyright 2014-2021 Adobe (http://www.adobe.com/), +with Reserved Font Name 'Source'. +Source is a trademark of Adobe in the United States and/or other countries. + +Copyright (c) 2016 The Inter Project Authors (https://github.com/rsms/inter), +with Reserved Font Name 'Inter'. + +Copyright 2021 The M+ FONTS Project Authors (https://github.com/coz-m/MPLUS_FONTS), +with Reserved Font Name 'M PLUS 1'. + +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: +https://scripts.sil.org/OFL + + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/fonts/variable/pretendard-std/README.md b/fonts/variable/pretendard-std/README.md new file mode 100644 index 00000000000..815390a11d2 --- /dev/null +++ b/fonts/variable/pretendard-std/README.md @@ -0,0 +1,48 @@ +# Fontsource Pretendard Std + +[![npm (scoped)](https://img.shields.io/npm/v/@fontsource-variable/pretendard-std?color=brightgreen)](https://www.npmjs.com/package/@fontsource-variable/pretendard-std) [![Generic badge](https://img.shields.io/badge/fontsource-passing-brightgreen)](https://github.com/fontsource/fontsource) [![Monthly downloads](https://badgen.net/npm/dm/@fontsource-variable/pretendard-std)](https://github.com/fontsource/fontsource) [![Total downloads](https://badgen.net/npm/dt/@fontsource-variable/pretendard-std)](https://github.com/fontsource/fontsource) [![GitHub stars](https://img.shields.io/github/stars/fontsource/fontsource.svg?style=social&label=Star)](https://github.com/fontsource/fontsource/stargazers) + +The CSS and web font files to easily self-host the “Pretendard Std” variable font. Please visit the main [Fontsource website](https://fontsource.org/fonts/pretendard-std) to view more details on this package. + +## Quick Installation + +Fontsource offers multiple methods to import the CSS, including using a bundler like Vite or using SASS. You can find full documentation [here](https://fontsource.org/docs/getting-started/introduction). + +```javascript +npm install @fontsource-variable/pretendard-std +``` + +Within your app entry file or site component, import it in. + +```javascript +import "@fontsource-variable/pretendard-std"; // Defaults to wght axis +import "@fontsource-variable/pretendard-std/wght.css"; // Specify axis +import "@fontsource-variable/pretendard-std/wght-italic.css"; // Specify axis and style +``` + +Supported variables: +- Weights: `[100,200,300,400,500,600,700,800,900]` +- Styles: `[normal]` +- Subsets: `[latin]` +- Axes: `[wght]` + +> Note: `italic` may not be supported by all fonts. To learn more about what weights and styles are supported, please visit the [Fontsource website](https://fontsource.org/fonts/pretendard-std). + +Finally, you can reference the font name in a CSS stylesheet, CSS Module, or CSS-in-JS. + +```css +body { + font-family: "Pretendard Std Variable"; +} +``` + +## Licensing +Always make sure to read the license for each font you use. Most of the fonts in the collection use the SIL Open Font License, v1.1. Some fonts use the Apache 2 license. The Ubuntu fonts use the Ubuntu Font License v1.0. + +2021 Kil Hyung-jin, 2014-2021 Adobe, 2016 The Inter Project Authors, 2021 The M+ FONTS Project Authors +[OFL-1.1](https://github.com/orioncactus/pretendard/blob/main/LICENSE) + +## Other Notes +Font version (provided by source): `v1.3.9`. + +If you have any suggestions or ideas to improve the performance of font loading or expand the existing library, feel free to star and contribute to this repository. You can share your suggestions or ideas by creating an [issue](https://github.com/fontsource/fontsource/issues). \ No newline at end of file diff --git a/fonts/variable/pretendard-std/files/pretendard-std-latin-wght-normal.woff2 b/fonts/variable/pretendard-std/files/pretendard-std-latin-wght-normal.woff2 new file mode 100644 index 00000000000..f368a22a573 Binary files /dev/null and b/fonts/variable/pretendard-std/files/pretendard-std-latin-wght-normal.woff2 differ diff --git a/fonts/variable/pretendard-std/index.css b/fonts/variable/pretendard-std/index.css new file mode 100644 index 00000000000..ee56615cedb --- /dev/null +++ b/fonts/variable/pretendard-std/index.css @@ -0,0 +1,8 @@ +/* pretendard-std-latin-wght-normal */ +@font-face { + font-family: 'Pretendard Std Variable'; + font-style: normal; + font-display: swap; + font-weight: 45 920; + src: url(./files/pretendard-std-latin-wght-normal.woff2) format('woff2-variations'); +} \ No newline at end of file diff --git a/fonts/variable/pretendard-std/metadata.json b/fonts/variable/pretendard-std/metadata.json new file mode 100644 index 00000000000..6cd930e2457 --- /dev/null +++ b/fonts/variable/pretendard-std/metadata.json @@ -0,0 +1,21 @@ +{ + "id": "pretendard-std", + "family": "Pretendard Std", + "subsets": ["latin"], + "weights": [100, 200, 300, 400, 500, 600, 700, 800, 900], + "styles": ["normal"], + "defSubset": "latin", + "variable": { + "wght": {"default": "400", "min": "45", "max": "920", "step": "1"} + }, + "lastModified": "2026-04-22", + "version": "v1.3.9", + "category": "sans-serif", + "license": { + "type": "OFL-1.1", + "url": "https://github.com/orioncactus/pretendard/blob/main/LICENSE", + "attribution": "2021 Kil Hyung-jin, 2014-2021 Adobe, 2016 The Inter Project Authors, 2021 The M+ FONTS Project Authors" + }, + "source": "https://github.com/orioncactus/pretendard", + "type": "other" +} \ No newline at end of file diff --git a/fonts/variable/pretendard-std/package.json b/fonts/variable/pretendard-std/package.json new file mode 100644 index 00000000000..3c88940b431 --- /dev/null +++ b/fonts/variable/pretendard-std/package.json @@ -0,0 +1,46 @@ +{ + "name": "@fontsource-variable/pretendard-std", + "version": "5.2.0", + "description": "Self-host the Pretendard Std font in a neatly bundled NPM package.", + "main": "index.css", + "publishConfig": {"access": "public"}, + "keywords": [ + "fontsource", + "font", + "font family", + "google fonts", + "pretendard-std", + "Pretendard Std", + "css", + "sass", + "front-end", + "web", + "typeface", + "variable" + ], + "exports": { + ".": {"sass": "./index.css", "default": "./index.css"}, + "./LICENSE": "./LICENSE", + "./*": {"sass": "./*.css", "default": "./*.css"}, + "./*.css": {"sass": "./*.css", "default": "./*.css"}, + "./files/*": {"sass": "./files/*", "default": "./files/*"}, + "./files/*.woff": {"sass": "./files/*.woff", "default": "./files/*.woff"}, + "./files/*.woff2": { + "sass": "./files/*.woff2", + "default": "./files/*.woff2" + }, + "./package.json": "./package.json", + "./metadata.json": "./metadata.json", + "./unicode.json": "./unicode.json", + "./scss": {"sass": "./scss/metadata.scss"} + }, + "author": "2021 Kil Hyung-jin, 2014-2021 Adobe, 2016 The Inter Project Authors, 2021 The M+ FONTS Project Authors", + "license": "OFL-1.1", + "homepage": "https://fontsource.org/fonts/pretendard-std", + "funding": "https://github.com/sponsors/ayuhito", + "repository": { + "type": "git", + "url": "git+https://github.com/fontsource/font-files.git", + "directory": "fonts/other/pretendard-std" + } +} \ No newline at end of file diff --git a/fonts/variable/pretendard-std/scss/metadata.scss b/fonts/variable/pretendard-std/scss/metadata.scss new file mode 100644 index 00000000000..6cf4f9aebba --- /dev/null +++ b/fonts/variable/pretendard-std/scss/metadata.scss @@ -0,0 +1,33 @@ +$id: 'pretendard-std'; +$family: 'Pretendard Std'; +$category: sans-serif; +$subsets: (latin); +$weights: (100, 200, 300, 400, 500, 600, 700, 800, 900); +$styles: (normal); +$axes: ( + wght: ( + default: 400, + min: 45, + max: 920, + step: 1, + ), +); +$defaults: ( + subset: latin, + weight: 400, + style: normal, + axis: wght, +); +$unicode: null; + +$metadata: ( + id: $id, + family: $family, + category: $category, + subsets: $subsets, + weights: $weights, + styles: $styles, + axes: $axes, + defaults: $defaults, + unicode: $unicode, +) !default; \ No newline at end of file diff --git a/fonts/variable/pretendard-std/scss/mixins.scss b/fonts/variable/pretendard-std/scss/mixins.scss new file mode 100644 index 00000000000..8388db5ae63 --- /dev/null +++ b/fonts/variable/pretendard-std/scss/mixins.scss @@ -0,0 +1,193 @@ +@use 'sass:list'; +@use 'sass:map'; +@use 'sass:math'; +@use 'sass:meta'; +@use 'sass:string'; + +@use 'metadata'; + +$metadata: metadata.$metadata !default; +$directory: null !default; + +$family: null !default; +$display: null !default; +$formats: null !default; +$subsets: null !default; +$weights: null !default; +$styles: null !default; +$axes: null !default; + +// Deprecated +$displayVar: null !default; + +@mixin generator( + $metadata: $metadata, + $directory: $directory, + $family: $family, + $display: $display, + $formats: $formats, + $subsets: $subsets, + $weights: $weights, + $styles: $styles, + $axes: $axes, + + // Deprecated + $displayVar: $displayVar +) { + @warn "Importing mixins via the fontsource package is deprecated and will be removed in the next major release. Please use the @fontsource-utils/scss package instead."; + + @if $displayVar != null { + @warn "$displayVar is deprecated due to the limitation of using css variables in @font-face (https://github.com/fontsource/fontsource/issues/726)."; + } + + $isVariable: map.get($metadata, axes) != null; + + $directory: if( + $directory, + $directory, + '~@fontsource#{if($isVariable, '-variable', '')}/#{map.get($metadata, id)}/files' + ); + + $family: if($family, $family, map.get($metadata, family) + if($isVariable, ' Variable', '')); + $display: if($display, $display, swap); + $formats: if(not $formats or $formats == all, if($isVariable, woff2, (woff2, woff)), $formats); + $subsets: if( + $subsets, + if($subsets == all, map.get($metadata, subsets), $subsets), + map.get($metadata, subsets) + ); + $weights: if( + $weights, + if($weights == all, map.get($metadata, weights), $weights), + map.get($metadata, defaults, weight) + ); + $styles: if( + $styles, + if($styles == all, map.get($metadata, styles), $styles), + map.get($metadata, defaults, style) + ); + $axes: if( + $axes, + if($axes == all, full, $axes), + if($isVariable, if(map.has-key($metadata, axes, wght), wght, full), null) + ); + + @each $subset in $subsets { + @each $unicodeSubset, $unicodeRange in map.get($metadata, unicode) { + // If condition is true, generate faces for the current subset + @if ( + // If there is no unicode information for the font or + ($unicodeSubset == null) or + // If the subset match a unicode subset or + ($subset == $unicodeSubset) or + ( + // If $unicodeSubset is a numeric unicode subset + // and current subset exists in the list of font subsets but does not match any unicode subset + // then generate faces for this numeric unicode subset as it is representing part of the current subset + list.index(map.get($metadata, subsets), $subset) and not + map.has-key($metadata, unicode, $subset) and not + list.index(map.get($metadata, subsets), $unicodeSubset) + ) + ) { + @each $weight in if($axes, null, $weights) { + @each $axis in $axes { + @each $style in $styles { + $variant: '#{map.get($metadata, id)}-#{if($unicodeSubset, $unicodeSubset, $subset)}-#{if($axis, $axis, $weight)}-#{$style}'; + + $src: (); + @each $format in $formats { + $src: list.append( + $src, + url('#{$directory}/#{$variant}.#{$format}') + format('#{$format}#{if($axis, '-variations', '')}'), + comma + ); + } + + @content (( + metadata: $metadata, + directory: $directory, + family: $family, + display: $display, + formats: $formats, + subsets: $subsets, + weights: $weights, + styles: $styles, + axes: $axes, + + variant: $variant, + subset: $subset, + unicodeSubset: $unicodeSubset, + unicodeRange: $unicodeRange, + weight: $weight, + axis: $axis, + style: $style, + + font-family: string.quote($family), + font-style: if( + (($axis == full) or ($axis == slnt)) and map.has-key($metadata, axes, slnt), + oblique map.get($metadata, axes, slnt, min) + deg map.get($metadata, axes, slnt, max) + deg, + $style + ), + font-display: $display, + font-weight: if( + (($axis == full) or ($axis == wght)) and map.has-key($metadata, axes, wght), + map.get($metadata, axes, wght, min) map.get($metadata, axes, wght, max), + $weight + ), + font-stretch: if( + (($axis == full) or ($axis == wdth)) and map.has-key($metadata, axes, wdth), + '#{map.get($metadata, axes, wdth, min)}% #{map.get($metadata, axes, wdth, max)}%', + null + ), + src: $src, + unicode-range: $unicodeRange, + )); + } + } + } + } + } + } +} + +@mixin faces( + $metadata: $metadata, + $directory: $directory, + $family: $family, + $display: $display, + $formats: $formats, + $subsets: $subsets, + $weights: $weights, + $styles: $styles, + $axes: $axes, + + // Deprecated + $displayVar: $displayVar +) { + @include generator( + $metadata: $metadata, + $directory: $directory, + $family: $family, + $display: $display, + $formats: $formats, + $subsets: $subsets, + $weights: $weights, + $styles: $styles, + $axes: $axes, + + $displayVar: $displayVar + ) + using ($props) { + /* #{map.get($props, variant)} */ + @font-face { + font-family: map.get($props, font-family); + font-style: map.get($props, font-style); + font-display: map.get($props, font-display); + font-weight: map.get($props, font-weight); + font-stretch: map.get($props, font-stretch); + unicode-range: map.get($props, unicode-range); + src: map.get($props, src); + } + } +} diff --git a/fonts/variable/pretendard-std/unicode.json b/fonts/variable/pretendard-std/unicode.json new file mode 100644 index 00000000000..9e26dfeeb6e --- /dev/null +++ b/fonts/variable/pretendard-std/unicode.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/fonts/variable/pretendard-std/wght.css b/fonts/variable/pretendard-std/wght.css new file mode 100644 index 00000000000..ee56615cedb --- /dev/null +++ b/fonts/variable/pretendard-std/wght.css @@ -0,0 +1,8 @@ +/* pretendard-std-latin-wght-normal */ +@font-face { + font-family: 'Pretendard Std Variable'; + font-style: normal; + font-display: swap; + font-weight: 45 920; + src: url(./files/pretendard-std-latin-wght-normal.woff2) format('woff2-variations'); +} \ No newline at end of file diff --git a/fonts/variable/pretendard/CHANGELOG.md b/fonts/variable/pretendard/CHANGELOG.md new file mode 100644 index 00000000000..e798685bbf8 --- /dev/null +++ b/fonts/variable/pretendard/CHANGELOG.md @@ -0,0 +1,2 @@ +# Changelog +See the [Fontsource CHANGELOG.md](https://github.com/fontsource/fontsource/blob/main/CHANGELOG.md). \ No newline at end of file diff --git a/fonts/variable/pretendard/LICENSE b/fonts/variable/pretendard/LICENSE new file mode 100644 index 00000000000..160421b6039 --- /dev/null +++ b/fonts/variable/pretendard/LICENSE @@ -0,0 +1,104 @@ +Copyright (c) 2021, Kil Hyung-jin (https://github.com/orioncactus/pretendard), +with Reserved Font Name 'Pretendard'. + +Copyright 2014-2021 Adobe (http://www.adobe.com/), +with Reserved Font Name 'Source'. +Source is a trademark of Adobe in the United States and/or other countries. + +Copyright (c) 2016 The Inter Project Authors (https://github.com/rsms/inter), +with Reserved Font Name 'Inter'. + +Copyright 2021 The M+ FONTS Project Authors (https://github.com/coz-m/MPLUS_FONTS), +with Reserved Font Name 'M PLUS 1'. + +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: +https://scripts.sil.org/OFL + + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/fonts/variable/pretendard/README.md b/fonts/variable/pretendard/README.md new file mode 100644 index 00000000000..93baa94456e --- /dev/null +++ b/fonts/variable/pretendard/README.md @@ -0,0 +1,48 @@ +# Fontsource Pretendard + +[![npm (scoped)](https://img.shields.io/npm/v/@fontsource-variable/pretendard?color=brightgreen)](https://www.npmjs.com/package/@fontsource-variable/pretendard) [![Generic badge](https://img.shields.io/badge/fontsource-passing-brightgreen)](https://github.com/fontsource/fontsource) [![Monthly downloads](https://badgen.net/npm/dm/@fontsource-variable/pretendard)](https://github.com/fontsource/fontsource) [![Total downloads](https://badgen.net/npm/dt/@fontsource-variable/pretendard)](https://github.com/fontsource/fontsource) [![GitHub stars](https://img.shields.io/github/stars/fontsource/fontsource.svg?style=social&label=Star)](https://github.com/fontsource/fontsource/stargazers) + +The CSS and web font files to easily self-host the “Pretendard” variable font. Please visit the main [Fontsource website](https://fontsource.org/fonts/pretendard) to view more details on this package. + +## Quick Installation + +Fontsource offers multiple methods to import the CSS, including using a bundler like Vite or using SASS. You can find full documentation [here](https://fontsource.org/docs/getting-started/introduction). + +```javascript +npm install @fontsource-variable/pretendard +``` + +Within your app entry file or site component, import it in. + +```javascript +import "@fontsource-variable/pretendard"; // Defaults to wght axis +import "@fontsource-variable/pretendard/wght.css"; // Specify axis +import "@fontsource-variable/pretendard/wght-italic.css"; // Specify axis and style +``` + +Supported variables: +- Weights: `[100,200,300,400,500,600,700,800,900]` +- Styles: `[normal]` +- Subsets: `[latin]` +- Axes: `[wght]` + +> Note: `italic` may not be supported by all fonts. To learn more about what weights and styles are supported, please visit the [Fontsource website](https://fontsource.org/fonts/pretendard). + +Finally, you can reference the font name in a CSS stylesheet, CSS Module, or CSS-in-JS. + +```css +body { + font-family: "Pretendard Variable"; +} +``` + +## Licensing +Always make sure to read the license for each font you use. Most of the fonts in the collection use the SIL Open Font License, v1.1. Some fonts use the Apache 2 license. The Ubuntu fonts use the Ubuntu Font License v1.0. + +2021 Kil Hyung-jin, 2014-2021 Adobe, 2016 The Inter Project Authors, 2021 The M+ FONTS Project Authors +[OFL-1.1](https://github.com/orioncactus/pretendard/blob/main/LICENSE) + +## Other Notes +Font version (provided by source): `v1.3.9`. + +If you have any suggestions or ideas to improve the performance of font loading or expand the existing library, feel free to star and contribute to this repository. You can share your suggestions or ideas by creating an [issue](https://github.com/fontsource/fontsource/issues). \ No newline at end of file diff --git a/fonts/variable/pretendard/files/pretendard-latin-wght-normal.woff2 b/fonts/variable/pretendard/files/pretendard-latin-wght-normal.woff2 new file mode 100644 index 00000000000..49c54b5152a Binary files /dev/null and b/fonts/variable/pretendard/files/pretendard-latin-wght-normal.woff2 differ diff --git a/fonts/variable/pretendard/index.css b/fonts/variable/pretendard/index.css new file mode 100644 index 00000000000..35723533821 --- /dev/null +++ b/fonts/variable/pretendard/index.css @@ -0,0 +1,8 @@ +/* pretendard-latin-400wght-normal */ +@font-face { + font-family: 'Pretendard Variable'; + font-style: normal; + font-display: swap; + font-weight: 45 920; + src: url(./files/pretendard-latin-wght-normal.woff2) format('woff2-variations'); +} \ No newline at end of file diff --git a/fonts/variable/pretendard/metadata.json b/fonts/variable/pretendard/metadata.json new file mode 100644 index 00000000000..64e4a20cfb4 --- /dev/null +++ b/fonts/variable/pretendard/metadata.json @@ -0,0 +1,21 @@ +{ + "id": "pretendard", + "family": "Pretendard", + "subsets": ["latin"], + "weights": [100, 200, 300, 400, 500, 600, 700, 800, 900], + "styles": ["normal"], + "defSubset": "latin", + "variable": { + "wght": {"default": "400", "min": "45", "max": "920", "step": "1"} + }, + "lastModified": "2026-04-22", + "version": "v1.3.9", + "category": "sans-serif", + "license": { + "type": "OFL-1.1", + "url": "https://github.com/orioncactus/pretendard/blob/main/LICENSE", + "attribution": "2021 Kil Hyung-jin, 2014-2021 Adobe, 2016 The Inter Project Authors, 2021 The M+ FONTS Project Authors" + }, + "source": "https://github.com/orioncactus/pretendard", + "type": "other" +} \ No newline at end of file diff --git a/fonts/variable/pretendard/package.json b/fonts/variable/pretendard/package.json new file mode 100644 index 00000000000..778c26c9308 --- /dev/null +++ b/fonts/variable/pretendard/package.json @@ -0,0 +1,46 @@ +{ + "name": "@fontsource-variable/pretendard", + "version": "5.2.0", + "description": "Self-host the Pretendard font in a neatly bundled NPM package.", + "main": "index.css", + "publishConfig": {"access": "public"}, + "keywords": [ + "fontsource", + "font", + "font family", + "google fonts", + "pretendard", + "Pretendard", + "css", + "sass", + "front-end", + "web", + "typeface", + "variable" + ], + "exports": { + ".": {"sass": "./index.css", "default": "./index.css"}, + "./LICENSE": "./LICENSE", + "./*": {"sass": "./*.css", "default": "./*.css"}, + "./*.css": {"sass": "./*.css", "default": "./*.css"}, + "./files/*": {"sass": "./files/*", "default": "./files/*"}, + "./files/*.woff": {"sass": "./files/*.woff", "default": "./files/*.woff"}, + "./files/*.woff2": { + "sass": "./files/*.woff2", + "default": "./files/*.woff2" + }, + "./package.json": "./package.json", + "./metadata.json": "./metadata.json", + "./unicode.json": "./unicode.json", + "./scss": {"sass": "./scss/metadata.scss"} + }, + "author": "2021 Kil Hyung-jin, 2014-2021 Adobe, 2016 The Inter Project Authors, 2021 The M+ FONTS Project Authors", + "license": "OFL-1.1", + "homepage": "https://fontsource.org/fonts/pretendard", + "funding": "https://github.com/sponsors/ayuhito", + "repository": { + "type": "git", + "url": "git+https://github.com/fontsource/font-files.git", + "directory": "fonts/other/pretendard" + } +} \ No newline at end of file diff --git a/fonts/variable/pretendard/scss/metadata.scss b/fonts/variable/pretendard/scss/metadata.scss new file mode 100644 index 00000000000..55f76f1bc03 --- /dev/null +++ b/fonts/variable/pretendard/scss/metadata.scss @@ -0,0 +1,33 @@ +$id: 'pretendard'; +$family: 'Pretendard'; +$category: sans-serif; +$subsets: (latin); +$weights: (100, 200, 300, 400, 500, 600, 700, 800, 900); +$styles: (normal); +$axes: ( + wght: ( + default: 400, + min: 45, + max: 920, + step: 1, + ), +); +$defaults: ( + subset: latin, + weight: 400, + style: normal, + axis: wght, +); +$unicode: null; + +$metadata: ( + id: $id, + family: $family, + category: $category, + subsets: $subsets, + weights: $weights, + styles: $styles, + axes: $axes, + defaults: $defaults, + unicode: $unicode, +) !default; \ No newline at end of file diff --git a/fonts/variable/pretendard/scss/mixins.scss b/fonts/variable/pretendard/scss/mixins.scss new file mode 100644 index 00000000000..8388db5ae63 --- /dev/null +++ b/fonts/variable/pretendard/scss/mixins.scss @@ -0,0 +1,193 @@ +@use 'sass:list'; +@use 'sass:map'; +@use 'sass:math'; +@use 'sass:meta'; +@use 'sass:string'; + +@use 'metadata'; + +$metadata: metadata.$metadata !default; +$directory: null !default; + +$family: null !default; +$display: null !default; +$formats: null !default; +$subsets: null !default; +$weights: null !default; +$styles: null !default; +$axes: null !default; + +// Deprecated +$displayVar: null !default; + +@mixin generator( + $metadata: $metadata, + $directory: $directory, + $family: $family, + $display: $display, + $formats: $formats, + $subsets: $subsets, + $weights: $weights, + $styles: $styles, + $axes: $axes, + + // Deprecated + $displayVar: $displayVar +) { + @warn "Importing mixins via the fontsource package is deprecated and will be removed in the next major release. Please use the @fontsource-utils/scss package instead."; + + @if $displayVar != null { + @warn "$displayVar is deprecated due to the limitation of using css variables in @font-face (https://github.com/fontsource/fontsource/issues/726)."; + } + + $isVariable: map.get($metadata, axes) != null; + + $directory: if( + $directory, + $directory, + '~@fontsource#{if($isVariable, '-variable', '')}/#{map.get($metadata, id)}/files' + ); + + $family: if($family, $family, map.get($metadata, family) + if($isVariable, ' Variable', '')); + $display: if($display, $display, swap); + $formats: if(not $formats or $formats == all, if($isVariable, woff2, (woff2, woff)), $formats); + $subsets: if( + $subsets, + if($subsets == all, map.get($metadata, subsets), $subsets), + map.get($metadata, subsets) + ); + $weights: if( + $weights, + if($weights == all, map.get($metadata, weights), $weights), + map.get($metadata, defaults, weight) + ); + $styles: if( + $styles, + if($styles == all, map.get($metadata, styles), $styles), + map.get($metadata, defaults, style) + ); + $axes: if( + $axes, + if($axes == all, full, $axes), + if($isVariable, if(map.has-key($metadata, axes, wght), wght, full), null) + ); + + @each $subset in $subsets { + @each $unicodeSubset, $unicodeRange in map.get($metadata, unicode) { + // If condition is true, generate faces for the current subset + @if ( + // If there is no unicode information for the font or + ($unicodeSubset == null) or + // If the subset match a unicode subset or + ($subset == $unicodeSubset) or + ( + // If $unicodeSubset is a numeric unicode subset + // and current subset exists in the list of font subsets but does not match any unicode subset + // then generate faces for this numeric unicode subset as it is representing part of the current subset + list.index(map.get($metadata, subsets), $subset) and not + map.has-key($metadata, unicode, $subset) and not + list.index(map.get($metadata, subsets), $unicodeSubset) + ) + ) { + @each $weight in if($axes, null, $weights) { + @each $axis in $axes { + @each $style in $styles { + $variant: '#{map.get($metadata, id)}-#{if($unicodeSubset, $unicodeSubset, $subset)}-#{if($axis, $axis, $weight)}-#{$style}'; + + $src: (); + @each $format in $formats { + $src: list.append( + $src, + url('#{$directory}/#{$variant}.#{$format}') + format('#{$format}#{if($axis, '-variations', '')}'), + comma + ); + } + + @content (( + metadata: $metadata, + directory: $directory, + family: $family, + display: $display, + formats: $formats, + subsets: $subsets, + weights: $weights, + styles: $styles, + axes: $axes, + + variant: $variant, + subset: $subset, + unicodeSubset: $unicodeSubset, + unicodeRange: $unicodeRange, + weight: $weight, + axis: $axis, + style: $style, + + font-family: string.quote($family), + font-style: if( + (($axis == full) or ($axis == slnt)) and map.has-key($metadata, axes, slnt), + oblique map.get($metadata, axes, slnt, min) + deg map.get($metadata, axes, slnt, max) + deg, + $style + ), + font-display: $display, + font-weight: if( + (($axis == full) or ($axis == wght)) and map.has-key($metadata, axes, wght), + map.get($metadata, axes, wght, min) map.get($metadata, axes, wght, max), + $weight + ), + font-stretch: if( + (($axis == full) or ($axis == wdth)) and map.has-key($metadata, axes, wdth), + '#{map.get($metadata, axes, wdth, min)}% #{map.get($metadata, axes, wdth, max)}%', + null + ), + src: $src, + unicode-range: $unicodeRange, + )); + } + } + } + } + } + } +} + +@mixin faces( + $metadata: $metadata, + $directory: $directory, + $family: $family, + $display: $display, + $formats: $formats, + $subsets: $subsets, + $weights: $weights, + $styles: $styles, + $axes: $axes, + + // Deprecated + $displayVar: $displayVar +) { + @include generator( + $metadata: $metadata, + $directory: $directory, + $family: $family, + $display: $display, + $formats: $formats, + $subsets: $subsets, + $weights: $weights, + $styles: $styles, + $axes: $axes, + + $displayVar: $displayVar + ) + using ($props) { + /* #{map.get($props, variant)} */ + @font-face { + font-family: map.get($props, font-family); + font-style: map.get($props, font-style); + font-display: map.get($props, font-display); + font-weight: map.get($props, font-weight); + font-stretch: map.get($props, font-stretch); + unicode-range: map.get($props, unicode-range); + src: map.get($props, src); + } + } +} diff --git a/fonts/variable/pretendard/unicode.json b/fonts/variable/pretendard/unicode.json new file mode 100644 index 00000000000..9e26dfeeb6e --- /dev/null +++ b/fonts/variable/pretendard/unicode.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/fonts/variable/pretendard/wght.css b/fonts/variable/pretendard/wght.css new file mode 100644 index 00000000000..35723533821 --- /dev/null +++ b/fonts/variable/pretendard/wght.css @@ -0,0 +1,8 @@ +/* pretendard-latin-400wght-normal */ +@font-face { + font-family: 'Pretendard Variable'; + font-style: normal; + font-display: swap; + font-weight: 45 920; + src: url(./files/pretendard-latin-wght-normal.woff2) format('woff2-variations'); +} \ No newline at end of file