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.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins