Scroll to navigation

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:

input .otf or .ttf font file
output .otf or .ttf font file (optional)

options:

show this help message and exit

options to control feature freezing:

comma-separated list of OpenType feature tags, e.g. 'smcp,c2sc,onum'
OpenType script tag, e.g. 'cyrl' (optional)
OpenType language tag, e.g. 'SRB ' (optional)
zap glyphnames from the font ('post' table version 3, .ttf only)

options to control font renaming:

add a suffix to the font family name (by default, the suffix will be constructed from the OpenType feature tags)
use a custom suffix when --suffix is enabled
search for strings in the font naming tables and replace them, format is 'search1/replace1,search2/replace2,...'
update font version string

reporting options:

report languages, scripts and features in font
output names of remapped glyphs during processing
print additional information during processing
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