|
From: <md...@us...> - 2008-10-30 15:26:58
|
Revision: 6358
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=6358&view=rev
Author: mdboom
Date: 2008-10-30 15:26:48 +0000 (Thu, 30 Oct 2008)
Log Message:
-----------
Fix bug in font_manager.py that was printing math junk on the docbuild machine.
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-30 14:58:47 UTC (rev 6357)
+++ trunk/matplotlib/lib/matplotlib/font_manager.py 2008-10-30 15:26:48 UTC (rev 6358)
@@ -1200,6 +1200,7 @@
best_score = 1e64
best_font = None
+
for font in fontlist:
# Matching family should have highest priority, so it is multiplied
# by 10.0
@@ -1216,7 +1217,7 @@
if score == 0:
break
- if best_font is None or best_score > 10.0:
+ if best_font is None or best_score >= 10.0:
verbose.report('findfont: Could not match %s. Returning %s' %
(prop, self.defaultFont))
result = self.defaultFont
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|