1.0.5 • Published 7 months ago

@anfu/font-subset v1.0.5

Weekly downloads
-
License
ISC
Repository
github
Last release
7 months ago

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 file
  • text the subset of the font to be generated
  • preset includes digits, letters, and symbols
  • output
    • path path to output the subset font file
    • name name of the subset font file

config example

subset.config.json
{
    "fontPath": "./gbk.ttf",
    "text": "锐字工房云字库行楷GBK",
    "preset": true,
    "output": {
        "path": "./example",
        "name": "gbk"
    }
}
1.0.5

7 months ago

1.0.4

7 months ago

1.0.3

7 months ago

1.0.2

7 months ago

1.0.1

7 months ago

1.0.0

7 months ago