Andrew Jaffe <[EMAIL PROTECTED]> writes: > I admit I don't understand the problems or the speccific code involved, > but I *think* it may be that the OSX-specific code isn't restricted to > afm files. Hence I wonder if the following is a fix:
> - for f in OSXInstalledFonts(): > + for f in OSXInstalledFonts(fontext=fontext): It helps in this particular case, but I think the intention behind this code is to allow loading non-TrueType fonts even when fontext='ttf'. On OS X there are various non-TrueType font formats (dfont, otf, resource-fork fonts), at least some of which are supported by freetype, so if you always pass fontext to OSXInstalledFonts, you unnecessarily limit the fonts found to those whose filename indicates ttf format. (Macs also don't care as much about filename extensions as the rest of the world.) But I'm just guessing here as to the reasoning behind the code. Somebody else might know better? -- 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-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users