Revision: 4179
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=4179&view=rev
Author:   mdboom
Date:     2007-11-09 05:19:38 -0800 (Fri, 09 Nov 2007)

Log Message:
-----------
Fix font caching bug on OSX

Modified Paths:
--------------
    trunk/matplotlib/lib/matplotlib/font_manager.py

Modified: trunk/matplotlib/lib/matplotlib/font_manager.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/font_manager.py     2007-11-09 13:10:12 UTC 
(rev 4178)
+++ trunk/matplotlib/lib/matplotlib/font_manager.py     2007-11-09 13:19:38 UTC 
(rev 4179)
@@ -172,7 +172,7 @@
             pass
     return fontpaths
 
-def OSXInstalledFonts(directory=None, fontext=None):
+def OSXInstalledFonts(directory=None, fontext='ttf'):
     """Get list of font files on OS X - ignores font suffix by default"""
     if directory is None:
         directory = OSXFontDirectory()
@@ -251,7 +251,7 @@
             fontpaths = x11FontDirectory()
             # check for OS X & load its fonts if present
             if sys.platform == 'darwin':
-                for f in OSXInstalledFonts():
+                for f in OSXInstalledFonts(fontext=fontext):
                     fontfiles[f] = 1
 
             for f in get_fontconfig_fonts(fontext):


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
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-checkins mailing list
Matplotlib-checkins@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to