table of contents
| PYFTFEATFREEZE(1) | User Commands | PYFTFEATFREEZE(1) |
NAME¶
pyftfeatfreeze - Freezes OpenType features into a font
DESCRIPTION¶
usage: pyftfeatfreeze [-h] [-f FEATURES] [-s SCRIPT] [-l LANG] [-z] [-S]
- [-U USESUFFIX] [-R REPLACENAMES] [-i] [-r] [-n] [-v]
- [-V] inpath [outpath]
With pyftfeatfreeze you can "freeze" some OpenType features into a font. These features are then "on by default", even in apps that don't support OpenType features. Internally, the tool remaps the "cmap" table of the font by applying the specified GSUB features. Only single and alternate substitutions are supported.
positional arguments:¶
options:¶
- -h, --help
- show this help message and exit
options to control feature freezing:¶
- -f, --features FEATURES
- comma-separated list of OpenType feature tags, e.g. 'smcp,c2sc,onum'
- -s, --script SCRIPT
- OpenType script tag, e.g. 'cyrl' (optional)
- -l, --lang LANG
- OpenType language tag, e.g. 'SRB ' (optional)
- -z, --zapnames
- zap glyphnames from the font ('post' table version 3, .ttf only)
options to control font renaming:¶
- -S, --suffix
- add a suffix to the font family name (by default, the suffix will be constructed from the OpenType feature tags)
- -U, --usesuffix USESUFFIX
- use a custom suffix when --suffix is enabled
- -R, --replacenames REPLACENAMES
- search for strings in the font naming tables and replace them, format is 'search1/replace1,search2/replace2,...'
- -i, --info
- update font version string
reporting options:¶
- -r, --report
- report languages, scripts and features in font
- -n, --names
- output names of remapped glyphs during processing
- -v, --verbose
- print additional information during processing
- -V, --version
- show program's version number and exit
Examples: pyftfeatfreeze -f 'c2sc,smcp' -S -U SC OpenSans.ttf OpenSansSC.ttf pyftfeatfreeze -R 'Lato/Otal' Lato-Regular.ttf Otal-Regular.ttf
| June 2025 | pyftfeatfreeze |