Hi,

We are having trouble with PDF generation on Windows (see below).

Python 2.4.3 - Enthought Edition 1.1.0
freetype 2.5.3 (GnuWin32 package)

Anyone experienced similar problems?

Meanwhile I'm modifying ttconv to include the font name in the error message.

        - Paul

  
Traceback (most recent call last):
  File "_tmp_alignment_test.py", line 87, in ?
    savefig("alignment_test_pdf", dpi=150)
  File "c:\python24\Lib\site-packages\matplotlib\pyplot.py", line 274, in 
savefig
    return fig.savefig(*args, **kwargs)
  File "c:\python24\Lib\site-packages\matplotlib\figure.py", line 770, in 
savefig
    self.canvas.print_figure(*args, **kwargs)
  File "c:\python24\Lib\site-packages\matplotlib\backend_bases.py", line 1195, 
in print_figure
    orientation=orientation,
  File "c:\python24\Lib\site-packages\matplotlib\backends\backend_pdf.py", line 
1943, in print_pdf
    file.close()
  File "c:\python24\Lib\site-packages\matplotlib\backends\backend_pdf.py", line 
406, in close
    self.writeFonts()
  File "c:\python24\Lib\site-packages\matplotlib\backends\backend_pdf.py", line 
475, in writeFonts
    fontdictObject = self.embedTTF(realpath, chars[1])
  File "c:\python24\Lib\site-packages\matplotlib\backends\backend_pdf.py", line 
918, in embedTTF
    return embedTTFType3(font, characters, descriptor)
  File "c:\python24\Lib\site-packages\matplotlib\backends\backend_pdf.py", line 
732, in embedTTFType3
    rawcharprocs = ttconv.get_pdf_charprocs(filename, glyph_ids)
RuntimeError: TrueType font may be corrupt (reason 2)


-------------------------------------------------------------------------
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-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to