ttfquery.ttfgroups
Demo script to print ordered set of system fonts
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 providedby findsystem will be used.
- failureCallback
- if provided, a function taking threearguments, 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 specifierfor the font