Command line utility converts TrueType and OpenType fonts to the WOFF format. It can extract from TTC collections. It is possible to revert the operation (woff to ttf) by specifying TTF as output. Accepts WOFF as both input and output to perform recompression. Compression is provided by Zopfli.
ttf2woff [-v] [-O|-S] [-t type] [-X table]... input [output] ttf2woff -i [-v] [-O|-S] [-X table]... [-m file] [-p file] file ttf2woff [-l] input -v be verbose -i in place modification -O optimize (default unless signed) -S don't optimize -t fmt output format: woff, ttf -u num font number in collection (TTC), 0-based -m xml metadata -p priv private data -X tag remove table -l list tables Use `-' to indicate standard input/output. Skip output for dry run.
By default, ttf2woff tries to find more compact representation of some font tables (with marginal gain, usually).