ftcli cff¶
A set of command line tools to manipulate the ‘CFF’ table.
ftcli cff [OPTIONS] COMMAND [ARGS]...
subcommands¶
del-names¶
Deletes CFF names in topDict.
ftcli cff del-names [OPTIONS] INPUT_PATH
Options
- --full-name¶
Deletes CFF.cff.topDictIndex[0] FullName
- --family-name¶
Deletes CFF.cff.topDictIndex[0] FamilyName
- --weight¶
Deletes CFF.cff.topDictIndex[0] Weight
- --version¶
Deletes CFF.cff.topDictIndex[0] version
- --copyright¶
Deletes CFF.cff.topDictIndex[0] Copyright
- --notice¶
Deletes CFF.cff.topDictIndex[0] Copyright
- --unique-id¶
Deletes CFF.cff.topDictIndex[0] UniqueID
- -r, --recursive¶
If input_path is a directory, recursively find font files both in input directory and its subdirectories.
- -out, --output-dir <output_dir>¶
Specify the directory where output files are to be saved. If the directory doesn’t exist, will be created. If output_dir is not specified, files will be saved to the same folder.
- --recalc-timestamp¶
Keep the original font ‘modified’ timestamp (head.modified) or set it to current time. By default, original timestamp is kept.
- --no-overwrite¶
Overwrite existing files or save them to a new file (numbers are appended at the end of file name). By default, files are overwritten.
Arguments
- INPUT_PATH¶
Required argument
find-replace¶
Finds a string in the following items of CFF table topDict and replaces it with a new string: version, FullName, FamilyName, Weight, Copyright, Notice.
ftcli cff find-replace [OPTIONS] INPUT_PATH
Options
- -os, --old-string <old_string>¶
Required The string to be replaced
- -ns, --new-string <new_string>¶
Required The string to replace the old string with
- -r, --recursive¶
If input_path is a directory, recursively find font files both in input directory and its subdirectories.
- -out, --output-dir <output_dir>¶
Specify the directory where output files are to be saved. If the directory doesn’t exist, will be created. If output_dir is not specified, files will be saved to the same folder.
- --recalc-timestamp¶
Keep the original font ‘modified’ timestamp (head.modified) or set it to current time. By default, original timestamp is kept.
- --no-overwrite¶
Overwrite existing files or save them to a new file (numbers are appended at the end of file name). By default, files are overwritten.
Arguments
- INPUT_PATH¶
Required argument
set-names¶
Sets CFF names in topDict. If the name is not present, it will be added. If the name is present, it will be replaced.
ftcli cff set-names [OPTIONS] INPUT_PATH
Options
- --font-names <fontNames>¶
Sets CFF.cff.fontNames value
- --full-name <FullName>¶
Sets CFF.cff.topDictIndex[0] FullName value
- --family-name <FamilyName>¶
Sets CFF.cff.topDictIndex[0] FamilyName value
- --weight <Weight>¶
Sets CFF.cff.topDictIndex[0] Weight value
- --version <version>¶
Sets CFF.cff.topDictIndex[0] version value
- -r, --recursive¶
If input_path is a directory, recursively find font files both in input directory and its subdirectories.
- -out, --output-dir <output_dir>¶
Specify the directory where output files are to be saved. If the directory doesn’t exist, will be created. If output_dir is not specified, files will be saved to the same folder.
- --recalc-timestamp¶
Keep the original font ‘modified’ timestamp (head.modified) or set it to current time. By default, original timestamp is kept.
- --no-overwrite¶
Overwrite existing files or save them to a new file (numbers are appended at the end of file name). By default, files are overwritten.
Arguments
- INPUT_PATH¶
Required argument