font splitter
1.0.0
큰 글꼴 파일을 작은 서브 세트로 분할하십시오.
글꼴 스플리터는 글꼴을 분할하고 Google Fonts와 마찬가지로 unicode-range 로 CSS를 생성합니다.
npm i -g font-splitter
yarn global add font-splitterfont-splitter [options] < fontPath >도움을 요청하십시오 :
$ font-splitter
Usage: font-splitter [options] < fontPath >
Options:
-v, --version output the version number
-c, --chunk < chunk > chunk size, ` - ` stand for infinity, default: 256
-f, --flavor < flavor > font flavor: woff, woff2
-n, --family < family > font family, default: parsed from font
-i, --italic italic font style, default: false
-w, --weight < weight > font weight, default: 400
-d, --dry dry run
-q, --quite disable stdout
-o, --output < output > output directory
-h, --help output usage informationdocker run --rm -it -v < /path/to/your/font > :/fonts vdustr/font-splitter < font.woff 2> < options >docker build -t vdustr/font-splitter .