Convert Fonts to Different Formats

fontTools is a family of libraries and utilities for manipulating fonts in Python.

$ pip install fonttools[woff]
$ python
>>> from fontTools.ttLib import TTFont
>>> f = TTFont("TX-02-Regular.ttf")
>>> f.flavor="woff"
>>> f.save("TX-02-Regular.woff")
>>> f.flavor="woff2"
>>> f.save("TX-02-Regular.woff2")