|
From: <md...@us...> - 2008-10-28 19:36:20
|
Revision: 6343
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=6343&view=rev
Author: mdboom
Date: 2008-10-28 19:36:07 +0000 (Tue, 28 Oct 2008)
Log Message:
-----------
Add short circuit for font lookup
Modified Paths:
--------------
trunk/matplotlib/lib/matplotlib/font_manager.py
Modified: trunk/matplotlib/lib/matplotlib/font_manager.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/font_manager.py 2008-10-28 18:10:51 UTC (rev 6342)
+++ trunk/matplotlib/lib/matplotlib/font_manager.py 2008-10-28 19:36:07 UTC (rev 6343)
@@ -1211,6 +1211,8 @@
if score < best_score:
best_score = score
best_font = font
+ if score == 0:
+ break
if best_font is None or best_score > 10.0:
verbose.report('findfont: Could not match %s. Returning %s' %
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|