ftcli hhea
Utilities for editing the hhea table.
Usage
ftcli hhea [OPTIONS] COMMAND [ARGS]...
recalc-caret-offset
Recalculates the caretOffset field of the hhea table.
Usage
ftcli hhea recalc-caret-offset [OPTIONS] INPUT_PATH
Options
- -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.
- -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.
- -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.
- -no-rtb, --no-reorder-tables
Do not reorder the font’s tables on save.
By default, 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
set-attrs
Sets miscellaneous attributes of the ‘hhea’ table.
Usage
ftcli hhea set-attrs [OPTIONS] INPUT_PATH
Options
- --ascent <ascent>
Sets the
ascentvalue.
- --descent <descent>
Sets the
descentvalue.
- --line-gap <line_gap>
Sets the
lineGapvalue.
- --rise <caret_slope_rise>
Sets the
caretSlopeRisevalue.
- --run <caret_slope_run>
Sets the
caretSlopeRunvalue.
- --offset <caret_offset>
Sets the
caretOffsetvalue.
- -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.
- -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.
- -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.
- -no-rtb, --no-reorder-tables
Do not reorder the font’s tables on save.
By default, 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