Revision: 3900
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=3900&view=rev
Author:   jouni
Date:     2007-09-28 08:57:49 -0700 (Fri, 28 Sep 2007)

Log Message:
-----------
More debugging output when using TeX with the pdf backend

Modified Paths:
--------------
    trunk/matplotlib/lib/matplotlib/backends/backend_pdf.py
    trunk/matplotlib/lib/matplotlib/dviread.py

Modified: trunk/matplotlib/lib/matplotlib/backends/backend_pdf.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/backends/backend_pdf.py     2007-09-28 
15:50:01 UTC (rev 3899)
+++ trunk/matplotlib/lib/matplotlib/backends/backend_pdf.py     2007-09-28 
15:57:49 UTC (rev 3900)
@@ -1472,6 +1472,11 @@
             if dvifont != oldfont:
                 fontinfo = self.tex_font_mapping(dvifont.texname)
                 pdfname = self.file.fontName(fontinfo.filename)
+                if not fontinfo.afm:
+                    matplotlib.verbose.report(
+                        'RendererPdf.draw_tex: No AFM file found for %s (%s)' \
+                            % (dvifont.texname, fontinfo.filename),
+                        'helpful')
                 self.file.fontInfo[pdfname] = Bunch(
                     encodingfile=fontinfo.encoding,
                     afmfile=fontinfo.afm)

Modified: trunk/matplotlib/lib/matplotlib/dviread.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/dviread.py  2007-09-28 15:50:01 UTC (rev 
3899)
+++ trunk/matplotlib/lib/matplotlib/dviread.py  2007-09-28 15:57:49 UTC (rev 
3900)
@@ -734,6 +734,9 @@
     result = pipe.readline().rstrip()
     pipe.close()
 
+    matplotlib.verbose.report('find_tex_file: %s -> %s' \
+                                  % (filename, result),
+                              'debug')
     return result
 
 # With multiple text objects per figure (e.g. tick labels) we may end


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: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Matplotlib-checkins mailing list
Matplotlib-checkins@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to