From: <md...@us...> - 2007-09-06 12:10:58
|
Revision: 3795 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=3795&view=rev Author: mdboom Date: 2007-09-06 05:09:08 -0700 (Thu, 06 Sep 2007) Log Message: ----------- Fix set_name call. Modified Paths: -------------- trunk/matplotlib/lib/matplotlib/font_manager.py Modified: trunk/matplotlib/lib/matplotlib/font_manager.py =================================================================== --- trunk/matplotlib/lib/matplotlib/font_manager.py 2007-09-05 21:50:01 UTC (rev 3794) +++ trunk/matplotlib/lib/matplotlib/font_manager.py 2007-09-06 12:09:08 UTC (rev 3795) @@ -637,7 +637,7 @@ self.__props.__dict__.update(_init) return - if isinstance(family, str): + if is_string_like(family): # Treat family as a fontconfig pattern if it is the only # parameter provided. if (style is None and @@ -720,8 +720,11 @@ if family is None: self.__props.__dict__.pop('family', None) else: + if is_string_like(family): + family = [family] self.__props.family = family - + set_name = set_family + def set_style(self, style): """Set the font style. Values are: normal, italic or oblique.""" if style is None: This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |