getting ttf font/family name; fontTools?

John Hunter jdhunter at ace.bsd.uchicago.edu
Thu Sep 11 21:19:24 EDT 2003


>>>>> "Mike" == Mike C Fletcher <mcfletch at rogers.com> writes:

    Mike> TTFQuery does all this stuff (using fontTools).
    Mike> Particularly the "describe" module in the package does the
    Mike> work of pulling apart the tables to get something useful:

This looks useful -- thanks.  There apparently is an error in
family_query.py

video:~/python/src/TTFQuery-0.2.4> python2.2 family_query.py 
Scanning for system fonts...
Traceback (most recent call last):
  File "family_query.py", line 11, in ?
    from ttfquery._scriptregistry import registry
  File "/usr/lib/python2.2/site-packages/ttfquery/_scriptregistry.py", line 15, in ?
    registry = _getRegistry()
  File "/usr/lib/python2.2/site-packages/ttfquery/_scriptregistry.py", line 11, in _getRegistry
    new,failed = registry.scan( directories, printErrors = 1, force = 0)
NameError: global name 'directories' is not defined

John Hunter





More information about the Python-list mailing list