Windows pdf generation


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 "", line 87, in ?
    savefig("alignment_test_pdf", dpi=150)
  File "c:\python24\Lib\site-packages\matplotlib\", line 274, in savefig
    return fig.savefig(*args, **kwargs)
  File "c:\python24\Lib\site-packages\matplotlib\", line 770, in savefig
    self.canvas.print_figure(*args, **kwargs)
  File "c:\python24\Lib\site-packages\matplotlib\", line 1195, in print_figure
  File "c:\python24\Lib\site-packages\matplotlib\backends\", line 1943, in print_pdf
  File "c:\python24\Lib\site-packages\matplotlib\backends\", line 406, in close
  File "c:\python24\Lib\site-packages\matplotlib\backends\", line 475, in writeFonts
    fontdictObject = self.embedTTF(realpath, chars[1])
  File "c:\python24\Lib\site-packages\matplotlib\backends\", line 918, in embedTTF
    return embedTTFType3(font, characters, descriptor)
  File "c:\python24\Lib\site-packages\matplotlib\backends\", line 732, in embedTTFType3
    rawcharprocs = ttconv.get_pdf_charprocs(filename, glyph_ids)
RuntimeError: TrueType font may be corrupt (reason 2)