Revision: 5293
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5293&view=rev
Author:   mdboom
Date:     2008-05-28 11:13:05 -0700 (Wed, 28 May 2008)

Log Message:
-----------
Fix PDFs that crash xpdf and ghostscript when two-byte codepoints are
used with Type 3 fonts.

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

Modified: branches/v0_91_maint/lib/matplotlib/backends/backend_pdf.py
===================================================================
--- branches/v0_91_maint/lib/matplotlib/backends/backend_pdf.py 2008-05-28 
18:03:15 UTC (rev 5292)
+++ branches/v0_91_maint/lib/matplotlib/backends/backend_pdf.py 2008-05-28 
18:13:05 UTC (rev 5293)
@@ -713,6 +713,7 @@
                     charprocDict['Type'] = Name('XObject')
                     charprocDict['Subtype'] = Name('Form')
                     charprocDict['BBox'] = bbox
+                    stream = stream[stream.find("d1") + 2:]
                 charprocObject = self.reserveObject('charProc')
                 self.beginStream(charprocObject.id, None, charprocDict)
                 self.currentstream.write(stream)


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 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to