tuyen font subset
Create a subset of a font file containing only specified Unicode ranges and weights
Usage
tuyen font subset [OPTIONS]Options
-i, --input <INPUT>
Path to the input font file (TTF, OTF, WOFF, or WOFF2)
Aliases:
src
-o, --output <OUTPUT>
Path for the output subset font file
Aliases:
dest
-w, --wght <WGHT>
Weight axis range to keep in the subset font.
Examples: "400" (single weight), "300:700" (range).
Examples: "400" (single weight), "300:700" (range).
Default values:
400:700-u, --unicodes <UNICODES>
Unicode ranges to include in the subset (comma-separated).
Examples: "U+0020-007F", "U+0020-007F,U+00A0-00FF,U+20AB".
Defaults to Latin + Vietnamese character ranges.
Examples: "U+0020-007F", "U+0020-007F,U+00A0-00FF,U+20AB".
Defaults to Latin + Vietnamese character ranges.
--additional-code <ADDITIONAL_CODE>
Extra Unicode code points to add beyond the default ranges.
Examples: "U+20AB", "U+1F600,U+1F601".
Examples: "U+20AB", "U+1F600,U+1F601".
Aliases:
ac
-f, --flavor <FLAVOR>
Output font format: "woff2", "woff", or "" for uncompressed
Default values:
woff2-l, --layout-features <LAYOUT_FEATURES>
OpenType layout features to preserve (e.g. "kern", "liga,kern")
Default values:
kern-k, --keep-axes <KEEP_AXES>
Keep all variation axes from the input font unchanged
Default values:
falsePossible values:
true, false--no-hinting
Remove hinting instructions to reduce file size (default: true)
Default values:
truePossible values:
true, false--no-meta
Remove the 'meta' table from the output font (default: true)
Default values:
truePossible values:
true, false--no-legacy-kern
Remove legacy 'kern' table, keeping only GPOS kerning (default: true)
Default values:
truePossible values:
true, false--desubroutinize
Flatten CFF subroutines for better compression (default: true)
Default values:
truePossible values:
true, false-h, --help
Print help.