TTFont now has a getGlyphSet() method, which will return a generic
GlyphSet. A GlyphSet is simply a dict-like object mapping glyph names
to glyphs. The glyphs in a GlyphSet have a .draw(pen) method and a
.width attribute. This provides a generic interface for drawing glyphs
or extracting outlines, and works both for CFF-based fonts and TT fonts.

See also fontTools.pens.basePen for a description of what makes a Pen
a Pen.


git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@420 4cde692c-a291-49d1-8350-778aa11640f8
1 file changed
tree: 25274cb5055d5c1980f64127386e89ab16de10b3
  1. Doc/
  2. Lib/
  3. Mac/
  4. MetaTools/
  5. Src/
  6. Tools/
  7. Windows/
  8. LICENSE.txt
  9. README.txt
  10. setup.py