ftcli converter

Font converter.

ftcli converter [OPTIONS] COMMAND [ARGS]...

subcommands

ft2wf

Converts SFNT fonts (TTF or OTF) to web fonts (WOFF and/or WOFF2)

ftcli converter ft2wf [OPTIONS] INPUT_PATH

Options

-f, --flavor <flavor>

By default, the script converts SFNT fonts (TrueType or OpenType) both to woff and woff2 flavored web fonts. Use this option to create only woff (–flavor woff) or woff2 (–flavor woff2) files.

Options:

woff | woff2

-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

otf2ttf

Converts OTF fonts to TTF (or PostScripts flavored woff/woff2 web fonts to TrueType flavored woff/woff2 web fonts).

ftcli converter otf2ttf [OPTIONS] INPUT_PATH

Options

--max-err <max_err>

Approximation error, measured in UPEM

-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

ttc2sfnt

Extracts each font from a TTC file, and saves it as a TTF or OTF file.

ftcli converter ttc2sfnt [OPTIONS] INPUT_PATH

Options

-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

ttf2otf

Converts TTF fonts to OTF (or TrueType flavored woff/woff2 web fonts to PostScript flavored woff/woff2 web fonts).

ftcli converter ttf2otf [OPTIONS] INPUT_PATH

Options

-t, --tolerance <tolerance>

Conversion tolerance (0.0-3.0, default 1.0). Low tolerance adds more points but keeps shapes. High tolerance adds few points but may change shape.

--scale-upm <scale_upm>

Scale the units-per-em of converted fonts.

--no-subr

Do not subroutinize converted fonts.

--silent

Run in silent mode

-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

vf2i

Exports static instances from variable fonts.

ftcli converter vf2i [OPTIONS] INPUT_PATH

Options

-s, --select-instance

By default, the script exports all named instances. Use this option to select custom axis values for a single instance.

--no-cleanup

By default, STAT table is dropped and axis nameIDs are deleted from name table. Use –no-cleanup to keep STAT table and prevent axis nameIDs to be deleted from name table.

--no-update-name-table

Prevent updating instantiated fonts name table. Input fonts must have a STAT table with Axis Value Tables.

-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

wf2ft

Converts web fonts (WOFF and WOFF2) to SFNT fonts (TTF or OTF)

ftcli converter wf2ft [OPTIONS] INPUT_PATH

Options

-f, --flavor <flavor>

By default, the script converts both woff and woff2 flavored web fonts to SFNT fonts (TrueType or OpenType). Use this option to convert only woff or woff2 flavored web fonts.

Options:

woff | woff2

-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