SourceForge logo
SourceForge logo
Menu

SF.net SVN: matplotlib:[6343] trunk/matplotlib/lib/matplotlib/font_manager. py

Revision: 6343
 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=6343&view=rev
Author: mdboom
Date: 2008年10月28日 19:36:07 +0000 (2008年10月28日)
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.

View entire thread

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /