[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.
1 file changed
tree: 49853e7c1dc252e5a04c0e9016e575863062720f
  1. Doc/
  2. Lib/
  3. MetaTools/
  4. Tools/
  5. Windows/
  6. LICENSE.txt
  7. MANIFEST.in
  8. README.md
  9. setup.py
README.md

What it is ?

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.

Quick start

python setup.py install

From your command line type the above command to get fontools installed on your system.

Installation

See install.txt in the 'Doc' subdirectory for instructions on how to build and install TTX/FontTools from the sources.

Documentation

What is TTX ?

See documentation.html in the "Doc" subdirectory for TTX usage instructions and information about the TTX file format.

Community

License

See "LICENSE.txt" for licensing information.

Have fun!

Just van Rossum just@letterror.com