From: <md...@us...> - 2008-05-28 18:19:32
|
Revision: 5294 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5294&view=rev Author: mdboom Date: 2008-05-28 11:19:30 -0700 (Wed, 28 May 2008) Log Message: ----------- Adding CHANGELOG entry and scary comment about what was going wrong. Modified Paths: -------------- branches/v0_91_maint/CHANGELOG branches/v0_91_maint/lib/matplotlib/backends/backend_pdf.py Modified: branches/v0_91_maint/CHANGELOG =================================================================== --- branches/v0_91_maint/CHANGELOG 2008-05-28 18:13:05 UTC (rev 5293) +++ branches/v0_91_maint/CHANGELOG 2008-05-28 18:19:30 UTC (rev 5294) @@ -1,3 +1,6 @@ +2008-05-28 Fix crashing of PDFs in xpdf and ghostscript when two-byte + characters are used with Type 3 fonts - MGD + 2008-05-28 Allow keyword args to configure widget properties as requested in http://sourceforge.net/tracker/index.php?func=detail&aid=1866207&group_id=80706&atid=560722 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:13:05 UTC (rev 5293) +++ branches/v0_91_maint/lib/matplotlib/backends/backend_pdf.py 2008-05-28 18:19:30 UTC (rev 5294) @@ -713,6 +713,12 @@ charprocDict['Type'] = Name('XObject') charprocDict['Subtype'] = Name('Form') charprocDict['BBox'] = bbox + # Each glyph includes bounding box information, + # but xpdf and ghostscript can't handle it in a + # Form XObject (they segfault!!!), so we remove it + # from the stream here. It's not needed anyway, + # since the Form XObject includes it in its BBox + # value. stream = stream[stream.find("d1") + 2:] charprocObject = self.reserveObject('charProc') self.beginStream(charprocObject.id, None, charprocDict) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |