commit | 6c51f500fb2d251056e20abdec7b0f2bb7f3404f | [log] [tgz] |
---|---|---|
author | Behdad Esfahbod <behdad@behdad.org> | Sun Dec 15 23:12:26 2013 -0500 |
committer | Behdad Esfahbod <behdad@behdad.org> | Sun Dec 15 23:15:15 2013 -0500 |
tree | 49853e7c1dc252e5a04c0e9016e575863062720f | |
parent | fa95e87d424d2514fd9f45a03f69ce3691412f0e [diff] |
[subset] Make sure objects are decompiled during subsetting We need to ensureDecompiled() whenever an object is modified before we look up any member of it. Note that normally objects remaining decompiled until we try to write them out is fine, except for when they depend on font.getGlyphOrder(). This however, shouldn't normally happen since if there's an object depending on the glyph list (eg. a Coverage table), it should already have been process to subset it according to the requested glyphs. Or that's the idea at least. The few cases that were not handled are handled explicitly now. This was showing a bug when subsetting Cabin for example.
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