This repository has the font packages that Project AIRI uses.
Each package gives the CSS @font-face rules and the font files for one font.
| Package | Font family | Weights | License | Source |
|---|---|---|---|---|
@proj-airi/font-chillroundf |
ChillRoundF (寒蝉全圆体) |
400 | OFL 1.1 | Warren2060/ChillRound |
@proj-airi/font-chillroundm |
ChillRoundM (寒蝉半圆体) |
400 | OFL 1.1 | Warren2060/ChillRound |
@proj-airi/font-cjkfonts-allseto |
cjkfonts AllSeto (全瀨體) |
400 | OFL 1.1 | cjkfonts.io |
@proj-airi/font-departure-mono |
Departure Mono |
400 | OFL 1.1 | rektdeckard/departure-mono |
@proj-airi/font-kirakara-maru |
KirakaraMaru (耀圆体) |
400, 700 | OFL 1.1 | feiyangjun-1/KirakaraMaru |
@proj-airi/font-lxgw-975yuan |
LXGW 975 Yuan SC (霞鹜975圆体SC) |
400, 500, 700 | OFL 1.1 | lxgw/975Yuan |
@proj-airi/font-xiaolai |
Xiaolai SC (小赖字体) |
400 | OFL 1.1 | lxgw/kose-font |
Each package keeps the license of its font. The license is in the package folder or in the license field of its package.json.
Install the package:
pnpm add @proj-airi/font-xiaolaiImport the CSS one time, for example in main.ts:
import '@proj-airi/font-xiaolai/index.css'Then use the font family:
font-family: 'Xiaolai SC', sans-serif;The bundler copies the font files that the CSS refers to. The CJK font files are between 4 MB and 30 MB each. Import only the fonts that the app uses.
- Copy a package folder, for example
packages/font-chillroundm, topackages/font-<name>. - Put the font files in
src/files. Do not modify the font data. - Write one
@font-facerule for each weight insrc/index.css. - Put the upstream license in
LICENSE. Updatepackage.json. - Add the package to the table in this README.
pnpm install
pnpm build
pnpm lintAll packages share one version.
- On
main, runpnpm release. bumpp sets the new version in all packages and makes therelease: vX.Y.Zcommit and tag. - Push the commit and the tag.
- The
Releaseworkflow builds the packages and publishes them to npm with trusted publishing.