Revision: 6098
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=6098&view=rev
Author:   jdh2358
Date:     2008-09-17 01:54:56 +0000 (Wed, 17 Sep 2008)

Log Message:
-----------
added the renderer dpi to the cache key for text

Modified Paths:
--------------
    trunk/matplotlib/lib/matplotlib/font_manager.py
    trunk/matplotlib/lib/matplotlib/text.py

Modified: trunk/matplotlib/lib/matplotlib/font_manager.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/font_manager.py     2008-09-15 23:09:24 UTC 
(rev 6097)
+++ trunk/matplotlib/lib/matplotlib/font_manager.py     2008-09-17 01:54:56 UTC 
(rev 6098)
@@ -955,7 +955,7 @@
         fname = prop.get_file()
         if fname is not None:
             verbose.report('findfont returning %s'%fname, 'debug')
-            return fname[0]
+            return fname
 
         if fontext == 'afm':
             fontdict = self.afmdict

Modified: trunk/matplotlib/lib/matplotlib/text.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/text.py     2008-09-15 23:09:24 UTC (rev 
6097)
+++ trunk/matplotlib/lib/matplotlib/text.py     2008-09-17 01:54:56 UTC (rev 
6098)
@@ -401,7 +401,7 @@
         return (x, y, self._text, self._color,
                 self._verticalalignment, self._horizontalalignment,
                 hash(self._fontproperties), self._rotation,
-                self.figure.dpi, id(self._renderer)
+                self.figure.dpi, id(self._renderer), self._renderer.dpi
                 )
 
     def get_text(self):


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
Matplotlib-checkins@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to