|
From: <md...@us...> - 2008-11-17 14:38:33
|
Revision: 6407
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=6407&view=rev
Author: mdboom
Date: 2008-11-17 14:38:27 +0000 (Mon, 17 Nov 2008)
Log Message:
-----------
Fix minor bug in findfont -- None input should return default font.
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-11-17 14:37:14 UTC (rev 6406)
+++ trunk/matplotlib/lib/matplotlib/font_manager.py 2008-11-17 14:38:27 UTC (rev 6407)
@@ -1180,6 +1180,8 @@
for a description of the font finding algorithm.
"""
debug = False
+ if prop is None:
+ return self.defaultFont
if is_string_like(prop):
prop = FontProperties(prop)
fname = prop.get_file()
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|