https://github.com/shyrz/webfonts
☄ GitHub as a CDN of Webfonts
https://github.com/shyrz/webfonts
webfont
Last synced: about 1 year ago
JSON representation
☄ GitHub as a CDN of Webfonts
- Host: GitHub
- URL: https://github.com/shyrz/webfonts
- Owner: shyrz
- License: mit
- Created: 2021-07-08T10:44:06.000Z (almost 5 years ago)
- Default Branch: root
- Last Pushed: 2023-08-07T15:25:10.000Z (almost 3 years ago)
- Last Synced: 2025-02-04T23:02:53.816Z (over 1 year ago)
- Topics: webfont
- Language: JavaScript
- Homepage:
- Size: 88.5 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Webfonts
[](https://www.jsdelivr.com/package/npm/@shyrz/webfonts)
## Usage
### 1. Use it with [jsdelivr](https://www.jsdelivr.com) (Recommend)
`https://cdn.jsdelivr.net/npm/@shyrz/webfonts@1.0.0` + `path/to/webfont`
For example, if you want to import `HYXuanSong55S` font to your project, use it in CSS like this:
```css
@font-face {
font-family: 'MySerif';
src: url('https://cdn.jsdelivr.net/npm/@shyrz/webfonts@1.0.0/HanYi/HYXuanSong/HYXuanSong55S.woff2') format('woff2');
font-weight: 400;
font-stretch: normal;
}
```