@anfu/font-subset
v1.0.5
Published
create a font-subset from a font file
Downloads
9
Readme
font-subset
create a font-subset from a font file.
install
pnpm i @anfu/font-subset -g
usage
Usage: fsub -c <path>
a command tool for generate font subset
Options:
-V, --version output the version number
-c, --config <path> the path of config file
-h, --help display help for command
config params
fontPath
path of the font filetext
the subset of the font to be generatedpreset
includes digits, letters, and symbolsoutput
path
path to output the subset font filename
name of the subset font file
config example
subset.config.json
{
"fontPath": "./gbk.ttf",
"text": "锐字工房云字库行楷GBK",
"preset": true,
"output": {
"path": "./example",
"name": "gbk"
}
}