Expand description
Port of fontTools.misc.cliTools: utilities for command-line interfaces.
Also holds the program name of the command lines (with_program_name,
program_text), with which the fontoxide executable names itself in their
usage and help texts.
Functions§
- make_
output_ file_ name makeOutputFileName: a file name to write the output for an input file to, with the directory replaced byoutput_dir,suffixadded to the name, and the extension replaced byextension. Withoutover_write, a number is added to avoid overwriting a file.- program_
name - The name of the program running the command lines, when it is not
fontTools’ (see
with_program_name). - program_
text - A usage, help or error text of the command line of
module(e.g."subset"), which names the programprogas fontTools does (e.g."fonttools subset", or anargparseprogsuch as"cu2qu"), adapted to the program name set bywith_program_name: the program becomes"<name> <module>". Without a program name, the text is returned unchanged. - with_
program_ name - Runs
fwith the command lines naming themselves<name> <module>in their usage and help texts (seeprogram_text), on this thread. This is how thefontoxideexecutable runs a module; by default, the texts are fontTools’.