ftcli cmap
Utilities for editing the cmap table.
Usage
ftcli cmap [OPTIONS] COMMAND [ARGS]...
rebuild
Rebuild the cmap table of a font. Optionally remap all characters, including those already in the cmap table.
Usage
ftcli cmap rebuild [OPTIONS] INPUT_PATH
Options
- --remap-all
Remap all glyphs, including the ones already in the cmap table.
- -r, --recursive
Recursively find font files both in input directory and its subdirectories.
Only applicable if
INPUT_PATHis a directory.
- -out, --output-dir <output_dir>
The directory where output files are to be saved.
If not specified, files will be saved to the same folder.
If the output directory doesn’t exist, it will be created, as well as any missing parent directories.
- -ow, --overwrite, -no-ow, --no-overwrite
Do not overwrite existing files on save.
If a file with the same name as the output file already exists, the command will suffix the filename with a number (
#1,#2, etc.).By default, existing files are overwritten.
- -rbb, --recalc-bboxes, -no-rbb, --no-recalc-bboxes
Do not recalculate the font’s bounding boxes on save.
By default,
glyf,CFF ``, ``headbounding box values andhhea/vheamin/max values are recalculated on save. Also, the glyphs are compiled on importing, which saves memory consumption and time.
- -rtb, --reorder-tables
Reorder the font’s tables on save.
When this option is active, tables are sorted by tag on save (recommended by the OpenType specification).
- -rts, --recalc-timestamp
Set the
modifiedtimestamp in theheadtable on save.By default, the original
modifiedtimestamp is kept.
Arguments
- INPUT_PATH
Required argument