Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(font): add pretendard #84

Merged
merged 1 commit into from
Sep 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions fonts/other/pretendard/100.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/* pretendard-latin-100-normal */
@font-face {
font-family: 'Pretendard';
font-style: normal;
font-display: swap;
font-weight: 100;
src: url(./files/pretendard-latin-100-normal.woff2) format('woff2'), url(./files/pretendard-latin-100-normal.woff) format('woff');
}
8 changes: 8 additions & 0 deletions fonts/other/pretendard/200.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/* pretendard-latin-200-normal */
@font-face {
font-family: 'Pretendard';
font-style: normal;
font-display: swap;
font-weight: 200;
src: url(./files/pretendard-latin-200-normal.woff2) format('woff2'), url(./files/pretendard-latin-200-normal.woff) format('woff');
}
8 changes: 8 additions & 0 deletions fonts/other/pretendard/300.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/* pretendard-latin-300-normal */
@font-face {
font-family: 'Pretendard';
font-style: normal;
font-display: swap;
font-weight: 300;
src: url(./files/pretendard-latin-300-normal.woff2) format('woff2'), url(./files/pretendard-latin-300-normal.woff) format('woff');
}
8 changes: 8 additions & 0 deletions fonts/other/pretendard/400.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/* pretendard-latin-400-normal */
@font-face {
font-family: 'Pretendard';
font-style: normal;
font-display: swap;
font-weight: 400;
src: url(./files/pretendard-latin-400-normal.woff2) format('woff2'), url(./files/pretendard-latin-400-normal.woff) format('woff');
}
8 changes: 8 additions & 0 deletions fonts/other/pretendard/500.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/* pretendard-latin-500-normal */
@font-face {
font-family: 'Pretendard';
font-style: normal;
font-display: swap;
font-weight: 500;
src: url(./files/pretendard-latin-500-normal.woff2) format('woff2'), url(./files/pretendard-latin-500-normal.woff) format('woff');
}
8 changes: 8 additions & 0 deletions fonts/other/pretendard/600.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/* pretendard-latin-600-normal */
@font-face {
font-family: 'Pretendard';
font-style: normal;
font-display: swap;
font-weight: 600;
src: url(./files/pretendard-latin-600-normal.woff2) format('woff2'), url(./files/pretendard-latin-600-normal.woff) format('woff');
}
8 changes: 8 additions & 0 deletions fonts/other/pretendard/700.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/* pretendard-latin-700-normal */
@font-face {
font-family: 'Pretendard';
font-style: normal;
font-display: swap;
font-weight: 700;
src: url(./files/pretendard-latin-700-normal.woff2) format('woff2'), url(./files/pretendard-latin-700-normal.woff) format('woff');
}
8 changes: 8 additions & 0 deletions fonts/other/pretendard/800.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/* pretendard-latin-800-normal */
@font-face {
font-family: 'Pretendard';
font-style: normal;
font-display: swap;
font-weight: 800;
src: url(./files/pretendard-latin-800-normal.woff2) format('woff2'), url(./files/pretendard-latin-800-normal.woff) format('woff');
}
8 changes: 8 additions & 0 deletions fonts/other/pretendard/900.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/* pretendard-latin-900-normal */
@font-face {
font-family: 'Pretendard';
font-style: normal;
font-display: swap;
font-weight: 900;
src: url(./files/pretendard-latin-900-normal.woff2) format('woff2'), url(./files/pretendard-latin-900-normal.woff) format('woff');
}
2 changes: 2 additions & 0 deletions fonts/other/pretendard/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Changelog
See the [Fontsource CHANGELOG.md](https://github.com/fontsource/fontsource/blob/main/CHANGELOG.md).
104 changes: 104 additions & 0 deletions fonts/other/pretendard/LICENSE
Original file line number Diff line number Diff line change
@@ -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.
47 changes: 47 additions & 0 deletions fonts/other/pretendard/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Fontsource Pretendard

[![npm (scoped)](https://img.shields.io/npm/v/@fontsource/pretendard?color=brightgreen)](https://www.npmjs.com/package/@fontsource/pretendard) [![Generic badge](https://img.shields.io/badge/fontsource-passing-brightgreen)](https://github.com/fontsource/fontsource) [![Monthly downloads](https://badgen.net/npm/dm/@fontsource/pretendard)](https://github.com/fontsource/fontsource) [![Total downloads](https://badgen.net/npm/dt/@fontsource/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” 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/pretendard
```

Within your app entry file or site component, import it in.

```javascript
import "@fontsource/pretendard"; // Defaults to weight 400
import "@fontsource/pretendard/400.css"; // Specify weight
import "@fontsource/pretendard/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).

Finally, you can reference the font name in a CSS stylesheet, CSS Module, or CSS-in-JS.

```css
body {
font-family: "Pretendard";
}
```

## 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.

orioncactus
[OFL-1.1](https://github.com/orioncactus/pretendard/blob/main/LICENSE)

## Other Notes
Font version (provided by source): `1.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).
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
8 changes: 8 additions & 0 deletions fonts/other/pretendard/index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/* pretendard-latin-400-normal */
@font-face {
font-family: 'Pretendard';
font-style: normal;
font-display: swap;
font-weight: 400;
src: url(./files/pretendard-latin-400-normal.woff2) format('woff2'), url(./files/pretendard-latin-400-normal.woff) format('woff');
}
8 changes: 8 additions & 0 deletions fonts/other/pretendard/latin-100.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/* pretendard-latin-100-normal */
@font-face {
font-family: 'Pretendard';
font-style: normal;
font-display: swap;
font-weight: 100;
src: url(./files/pretendard-latin-100-normal.woff2) format('woff2'), url(./files/pretendard-latin-100-normal.woff) format('woff');
}
8 changes: 8 additions & 0 deletions fonts/other/pretendard/latin-200.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/* pretendard-latin-200-normal */
@font-face {
font-family: 'Pretendard';
font-style: normal;
font-display: swap;
font-weight: 200;
src: url(./files/pretendard-latin-200-normal.woff2) format('woff2'), url(./files/pretendard-latin-200-normal.woff) format('woff');
}
8 changes: 8 additions & 0 deletions fonts/other/pretendard/latin-300.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/* pretendard-latin-300-normal */
@font-face {
font-family: 'Pretendard';
font-style: normal;
font-display: swap;
font-weight: 300;
src: url(./files/pretendard-latin-300-normal.woff2) format('woff2'), url(./files/pretendard-latin-300-normal.woff) format('woff');
}
8 changes: 8 additions & 0 deletions fonts/other/pretendard/latin-400.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/* pretendard-latin-400-normal */
@font-face {
font-family: 'Pretendard';
font-style: normal;
font-display: swap;
font-weight: 400;
src: url(./files/pretendard-latin-400-normal.woff2) format('woff2'), url(./files/pretendard-latin-400-normal.woff) format('woff');
}
8 changes: 8 additions & 0 deletions fonts/other/pretendard/latin-500.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/* pretendard-latin-500-normal */
@font-face {
font-family: 'Pretendard';
font-style: normal;
font-display: swap;
font-weight: 500;
src: url(./files/pretendard-latin-500-normal.woff2) format('woff2'), url(./files/pretendard-latin-500-normal.woff) format('woff');
}
8 changes: 8 additions & 0 deletions fonts/other/pretendard/latin-600.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/* pretendard-latin-600-normal */
@font-face {
font-family: 'Pretendard';
font-style: normal;
font-display: swap;
font-weight: 600;
src: url(./files/pretendard-latin-600-normal.woff2) format('woff2'), url(./files/pretendard-latin-600-normal.woff) format('woff');
}
8 changes: 8 additions & 0 deletions fonts/other/pretendard/latin-700.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/* pretendard-latin-700-normal */
@font-face {
font-family: 'Pretendard';
font-style: normal;
font-display: swap;
font-weight: 700;
src: url(./files/pretendard-latin-700-normal.woff2) format('woff2'), url(./files/pretendard-latin-700-normal.woff) format('woff');
}
8 changes: 8 additions & 0 deletions fonts/other/pretendard/latin-800.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/* pretendard-latin-800-normal */
@font-face {
font-family: 'Pretendard';
font-style: normal;
font-display: swap;
font-weight: 800;
src: url(./files/pretendard-latin-800-normal.woff2) format('woff2'), url(./files/pretendard-latin-800-normal.woff) format('woff');
}
8 changes: 8 additions & 0 deletions fonts/other/pretendard/latin-900.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/* pretendard-latin-900-normal */
@font-face {
font-family: 'Pretendard';
font-style: normal;
font-display: swap;
font-weight: 900;
src: url(./files/pretendard-latin-900-normal.woff2) format('woff2'), url(./files/pretendard-latin-900-normal.woff) format('woff');
}
Loading