ftcli utils

Miscellaneous utilities.

Usage

ftcli utils [OPTIONS] COMMAND [ARGS]...

font-organizer

Organizes the given font files based on specified sorting options.

Usage

ftcli utils font-organizer [OPTIONS] INPUT_PATH

Options

-m, --sort-by-manufacturer

Sort the font files by manufacturer.

-v, --sort-by-font-revision

Sort the font files by font revision.

-e, --sort-by-extension

Sort the font files by extension.

-d, --delete-empty-directories

Delete empty directories after moving the font files.

-r, --recursive

If input_path is a directory, the font finder will search for fonts recursively in subdirectories.

Arguments

INPUT_PATH

Required argument

font-renamer

Renames the given font files.

Usage

ftcli utils font-renamer [OPTIONS] INPUT_PATH

Options

-s, --source <source>

The source string(s) from which to extract the new file name. Default is 1 (FamilyName-StyleName), used also as fallback name when 4 or 5 are passed but the font is TrueType

1: FamilyName-StyleName
2: PostScript Name
3: Full Font Name
4: CFF fontNames (CFF fonts only)
5: CFF TopDict FullName (CFF fonts only)
Options:

1 | 2 | 3 | 4 | 5

-r, --recursive

If input_path is a directory, the font finder will search for fonts recursively in subdirectories.

Arguments

INPUT_PATH

Required argument

sync-timestamps

Syncs the modified and created timestamps of the font files in the given path with the created and modified timestamps stored in their head table.

Usage

ftcli utils sync-timestamps [OPTIONS] INPUT_PATH

Options

-r, --recursive

If input_path is a directory, the font finder will search for fonts recursively in subdirectories.

Arguments

INPUT_PATH

Required argument