ttfquery.font_family_groups
index
/home/mcfletch/pylive/ttfquery/font_family_groups.py

Demo script to print ordered set of system fonts

 
Modules
       
ttfquery.describe
ttfquery.findsystem
sys
traceback

 
Functions
       
buildTable(filenames=None, failureCallback=None)
Build table mapping {family:(font:{modifiers:(name,file)})}
 
filenames -- if provided, list of filenames to scan,
        otherwise the full set of system fonts provided
        by findsystem will be used.
failureCallback -- if provided, a function taking three
        arguments, the failing filename, an error-type code,
        and the error object.  If processing should stop,
        raise an error.
        codes:
                0 -- couldn't open the font file
                1 -- couldn't find modifiers in the font file
                2 -- couldn't find font-name in the font file
                3 -- couldn't find the generic family specifier
                        for the font
interactiveCallback(file, code, err)
Simple error callback for interactive use

 
Data
        __file__ = '/home/mcfletch/pylive/ttfquery/font_family_groups.pyc'
__name__ = 'ttfquery.font_family_groups'
__package__ = 'ttfquery'