From: <md...@us...> - 2007-11-28 21:01:17
|
Revision: 4499 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=4499&view=rev Author: mdboom Date: 2007-11-28 13:01:01 -0800 (Wed, 28 Nov 2007) Log Message: ----------- Merged revisions 4496-4498 via svnmerge from http://matplotlib.svn.sf.net/svnroot/matplotlib/trunk/matplotlib ........ r4497 | mdboom | 2007-11-28 15:43:01 -0500 (Wed, 28 Nov 2007) | 2 lines Minor fix -- updating old \rm{} syntax to \mathrm{} syntax. ........ r4498 | mdboom | 2007-11-28 15:58:06 -0500 (Wed, 28 Nov 2007) | 2 lines Fix for STIX fonts with PDF backend. ........ Modified Paths: -------------- branches/transforms/examples/mathtext_demo.py branches/transforms/lib/matplotlib/backends/backend_pdf.py Property Changed: ---------------- branches/transforms/ Property changes on: branches/transforms ___________________________________________________________________ Name: svnmerge-integrated - /trunk/matplotlib:1-4495 + /trunk/matplotlib:1-4498 Modified: branches/transforms/examples/mathtext_demo.py =================================================================== --- branches/transforms/examples/mathtext_demo.py 2007-11-28 20:58:06 UTC (rev 4498) +++ branches/transforms/examples/mathtext_demo.py 2007-11-28 21:01:01 UTC (rev 4499) @@ -22,7 +22,7 @@ ax.legend(("Foo", "Testing $x^2$")) -ax.set_title(r'$\Delta_i^j \hspace{0.4} \rm{versus} \hspace{0.4} \Delta_{i+1}^j$', fontsize=20) +ax.set_title(r'$\Delta_i^j \hspace{0.4} \mathrm{versus} \hspace{0.4} \Delta_{i+1}^j$', fontsize=20) #fig.savefig('mathtext_demo') show() Modified: branches/transforms/lib/matplotlib/backends/backend_pdf.py =================================================================== --- branches/transforms/lib/matplotlib/backends/backend_pdf.py 2007-11-28 20:58:06 UTC (rev 4498) +++ branches/transforms/lib/matplotlib/backends/backend_pdf.py 2007-11-28 21:01:01 UTC (rev 4499) @@ -719,7 +719,7 @@ charprocDict['Type'] = Name('XObject') charprocDict['Subtype'] = Name('Form') charprocDict['BBox'] = bbox - charprocObject = self.reserveObject('charProc for %s' % name) + charprocObject = self.reserveObject('charProc') self.beginStream(charprocObject.id, None, charprocDict) self.currentstream.write(stream) self.endStream() @@ -1308,6 +1308,7 @@ fonttype = global_fonttype if fonttype == 3 and num > 255: + self.file.fontName(fontname) self.file.output(Op.gsave, 0.001 * fontsize, 0, 0, 0.001 * fontsize, This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |