Quoting from TTX/FontTools Sourceforge Project
a tool to convert OpenType and TrueType fonts to and from XML. FontTools is a library for manipulating fonts, written in Python. It supports TrueType, OpenType, AFM and to an extent Type 1 and some Mac-specific formats.
python setup.py install
From your command line type the above command to get fontools installed on your system.
See install.txt in the ‘Doc’ subdirectory for instructions on how to build and install TTX/FontTools from the sources.
See documentation.html in the “Doc” subdirectory for TTX usage instructions and information about the TTX file format.
See “LICENSE.txt” for licensing information.
Just van Rossum email@example.com