CLI Overview
Fontisan includes a comprehensive command-line interface.
Available Commands
| Command | Description |
|---|---|
convert | Convert between font formats |
info | Get font information |
validate | Validate fonts |
subset | Subset fonts |
pack | Create font collections |
unpack | Extract from collections |
export | Export to TTX, SVG, etc. |
ls | List fonts in collection |
instance | Generate variable font instances |
Global Options
bash
fontisan [options] <command>
Options:
--format FORMAT Output format (text, yaml, json)
--verbose Verbose output
--quiet Suppress non-error output
--help Show help
--version Show versionGetting Help
bash
# General help
fontisan --help
# Command help
fontisan convert --help
fontisan validate --helpOutput Formats
Text (default)
bash
fontisan info font.ttfYAML
bash
fontisan info font.ttf --format yamlJSON
bash
fontisan info font.ttf --format jsonGuides
- convert — Format conversion
- info — Font information
- validate — Validation
- subset — Subsetting
- pack — Collections
Examples
Basic Conversion
bash
fontisan convert input.ttf --to otf --output output.otfValidate for Web
bash
fontisan validate font.ttf --profile webExtract Collection
bash
fontisan unpack fonts.ttc --output-dir ./extractedGenerate Instance
bash
fontisan instance variable.ttf --wght 700 --output bold.ttf