On OS X, using the pdf backend, I get the exception "RuntimeError: TrueType font is missing table" when running examples/fonts_demo_kw.py, because ttconv is trying to load /System/Library/Fonts/Times.dfont as a TrueType font, which it of course is not.
A simple solution would be to limit the font searching algorithm to only look for files matching *.ttf, but that would unnecessarily limit the Agg-based backends, since freetype does understand and render dfont files. The best solution would be to implement dfont support in the pdf backend, but I have no idea how complicated that would be. What would be a reasonable interim solution? Perhaps the font manager should identify the file type of each font file it knows about, so e.g. the pdf backend could request a list of just the TrueType fonts. (See also: http://article.gmane.org/gmane.comp.python.matplotlib.general/10069 ) -- Jouni K. Seppänen http://www.iki.fi/jks ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel