ttfquery.ttffiles

Registry of available TrueType font files
XXX Currently two copies of exactly the same font will likely confuse the registry because the specificFonts set will only have one of the metrics sets. Nothing breaks at the moment because of this, but it's not ideal.

Functions

Classes

class Registry( object ):
Object providing centralized registration of TTF files
Attributes: families -- mapping from TrueType font families to sub-families and then to general fonts (as a set of font-names). fonts -- mapping from general fonts to modifiers to specific font instances specificFonts -- mapping from specific font names to the entire "metrics" set for the particular font. files -- mapping from (absolute) filenames to specific font names shortFiles -- mapping from font filename basenames to font-file-lists DIRTY -- flag indicating whether the registry has had a new font registered (i.e. whether it should be saved out to disk).