Revision: 7803
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=7803&view=rev
Author:   mdboom
Date:     2009-09-21 11:57:17 +0000 (Mon, 21 Sep 2009)

Log Message:
-----------
Fix 'variable used before defined' errors in backend_pdf.py building the docs

Modified Paths:
--------------
    branches/v0_99_maint/lib/matplotlib/backends/backend_pdf.py

Modified: branches/v0_99_maint/lib/matplotlib/backends/backend_pdf.py
===================================================================
--- branches/v0_99_maint/lib/matplotlib/backends/backend_pdf.py 2009-09-20 
22:10:07 UTC (rev 7802)
+++ branches/v0_99_maint/lib/matplotlib/backends/backend_pdf.py 2009-09-21 
11:57:17 UTC (rev 7803)
@@ -524,19 +524,18 @@
             if filename.endswith('.afm'):
                 # from pdf.use14corefonts
                 matplotlib.verbose.report('Writing AFM font', 'debug')
-                fontdictObject = self._write_afm_font(filename)
+                fonts[Fx] = self._write_afm_font(filename)
             elif self.dviFontInfo.has_key(filename):
                 # a Type 1 font from a dvi file; the filename is really the 
TeX name
                 matplotlib.verbose.report('Writing Type-1 font', 'debug')
-                fontdictObject = self.embedTeXFont(filename, 
self.dviFontInfo[filename])
+                fonts[Fx] = self.embedTeXFont(filename, 
self.dviFontInfo[filename])
             else:
                 # a normal TrueType font
                 matplotlib.verbose.report('Writing TrueType font', 'debug')
                 realpath, stat_key = get_realpath_and_stat(filename)
                 chars = self.used_characters.get(stat_key)
                 if chars is not None and len(chars[1]):
-                    fontdictObject = self.embedTTF(realpath, chars[1])
-            fonts[Fx] = fontdictObject
+                    fonts[Fx] = self.embedTTF(realpath, chars[1])
         self.writeObject(self.fontObject, fonts)
 
     def _write_afm_font(self, filename):


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to