On 9/30/05, Andre Wobst <wobsta@...> wrote:
> Hi,
>
> On 12.09.05, Brett Calcott wrote:
> > This may not be news to you, but..
> >
> > text.set(mode=3D"latex")
> > text.preamble(r"\usepackage{fourier}")
> >
> > causes a crash for pdf creation. So do a few others.
>
> Well, it turns out that these actually are news! Gert Ingold could
> now reproduce the problem. So instead of what I wrote you in an
> earlier private mail I did now as well (BTW it turns out that there
> are some differences between various tex distributions). This actually
> is good news since I could now also fix it. The problem was, that
> certain tfm fonts do not provide us with proper full information in
> their params field. Finally we couldn't extract the italic angle for
> this font. At least this case seems to work now using the CVS head.
>
> So thanks for bringing up this issue.
>
>
Hi Andre. Because I was generating .ps rather .pdf for the moment I
hadn't followed it up. I thought it may be something to do with the
pdf font map files or something (I have only a vague concept of how
this all works..)
FYI, I use MikTeX on windows. Which claims to be TDS compliant. Here
is the traceback so you can check that it is the same problem. I
suspect so from your description. Many thanks again for a very nice
product. The graphs in my paper look very nice.
Traceback (most recent call last):
File "D:\temp\PyX-0.8.1\examples\text\font.py", line 14, in ?
c.writePDFfile("font")
File "C:\Python24\Lib\site-packages\pyx\canvas.py", line 323, in
wrappedindocument
return method(d, filename)
File "C:\Python24\Lib\site-packages\pyx\document.py", line 144, in
writePDFfile
pdfwriter.PDFwriter(self, filename, *args, **kwargs)
File "C:\Python24\Lib\site-packages\pyx\pdfwriter.py", line 495, in __ini=
t__
catalog =3D PDFcatalog(document, registry)
File "C:\Python24\Lib\site-packages\pyx\pdfwriter.py", line 126, in __ini=
t__
self.PDFpages =3D PDFpages(document, registry)
File "C:\Python24\Lib\site-packages\pyx\pdfwriter.py", line 183, in __ini=
t__
page =3D PDFpage(page, pageno, self, registry)
File "C:\Python24\Lib\site-packages\pyx\pdfwriter.py", line 218, in __ini=
t__
self.page.canvas.registerPDF(self.pageregistry)
File "C:\Python24\Lib\site-packages\pyx\canvas.py", line 183, in register=
PDF
item.registerPDF(registry)
File "C:\Python24\lib\site-packages\pyx\text.py", line 698, in registerPD=
F
canvas._canvas.registerPDF(self, registry)
File "C:\Python24\Lib\site-packages\pyx\canvas.py", line 183, in register=
PDF
item.registerPDF(registry)
File "C:\Python24\Lib\site-packages\pyx\canvas.py", line 183, in register=
PDF
item.registerPDF(registry)
File "C:\Python24\Lib\site-packages\pyx\canvas.py", line 183, in register=
PDF
item.registerPDF(registry)
File "C:\Python24\Lib\site-packages\pyx\type1font.py", line 282, in
registerPDF
registry.add(pdfwriter.PDFfont(self.font, self.chars, registry))
File "C:\Python24\Lib\site-packages\pyx\pdfwriter.py", line 321, in __ini=
t__
self.fontdescriptor =3D PDFfontdescriptor(font, chars, registry)
File "C:\Python24\Lib\site-packages\pyx\pdfwriter.py", line 392, in __ini=
t__
self.fontinfo =3D font.metric.fontinfo()
File "C:\Python24\lib\site-packages\pyx\dvifile.py", line 443, in fontinf=
o
fontinfo.italicangle =3D -180/math.pi*math.atan(self.tfmfile.param[0]/6=
5536.0)
IndexError: list index out of range
|