commit | cb4adf682848103b25f955d19a892fb33fbde9e3 | [log] [tgz] |
---|---|---|
author | Behdad Esfahbod <behdad@behdad.org> | Tue Nov 26 18:55:23 2013 -0500 |
committer | Behdad Esfahbod <behdad@behdad.org> | Tue Nov 26 18:55:23 2013 -0500 |
tree | bb263c1b954351034a15c37e2f0303645d76a135 | |
parent | 2f2fd9ca7c1da36d86adfc7467c53fb283d9196e [diff] |
Fix XML->ttf for fonts that have some missing anchors, etc Eg. EBGaramond12-Regular.ttf. It has a base anchor missing. Dropping the empty table from XML changes the size of the base anchor array, which will then result in an assertion because all bases should have the same array length. Fixes many other broken fonts too.
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.
Have fun!
Just van Rossum just@letterror.com