From: <jo...@us...> - 2007-09-10 20:55:33
|
Revision: 3828 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=3828&view=rev Author: jouni Date: 2007-09-10 13:55:29 -0700 (Mon, 10 Sep 2007) Log Message: ----------- Bugfixes in pdf usetex Modified Paths: -------------- trunk/matplotlib/lib/matplotlib/backends/backend_pdf.py Modified: trunk/matplotlib/lib/matplotlib/backends/backend_pdf.py =================================================================== --- trunk/matplotlib/lib/matplotlib/backends/backend_pdf.py 2007-09-10 20:31:01 UTC (rev 3827) +++ trunk/matplotlib/lib/matplotlib/backends/backend_pdf.py 2007-09-10 20:55:29 UTC (rev 3828) @@ -519,12 +519,13 @@ ul_position, ul_thickness = font.get_ps_font_info() if fontinfo.encodingfile is not None: - differencesArray = [ Name(ch) for ch in - dviread.Encoding(fontinfo.encodingfile) ] + enc = dviread.Encoding(fontinfo.encodingfile) + widths = [ afmdata.get_width_from_char_name(ch) + for ch in enc ] + differencesArray = [ Name(ch) for ch in enc ] differencesArray = [ 0 ] + differencesArray firstchar = 0 lastchar = len(differencesArray) - 2 - widths = [ 100 for x in range(firstchar,lastchar+1) ] # XXX TODO else: widths = [ None for i in range(256) ] for ch in range(256): @@ -1427,7 +1428,7 @@ # Pop off the global transformation self.file.output(Op.grestore) - def draw_tex(self, gc, x, y, s, prop, angle): + def _draw_tex(self, gc, x, y, s, prop, angle): # Rename to draw_tex to enable texmanager = self.get_texmanager() This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |