From: Michael S. <mic...@ph...> - 2006-02-21 09:31:02
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 02/20/06 20:53, Andre Wobst wrote: [snip] > Well, the font isn't embedded in PostScript either. Which is ok for > PostScript, but it's wrong for PDF. Note, that > egrep -e ppl $(kpsewhich psfonts.map) > and > egrep -e ppl $(kpsewhich pdftex.map) > is quite different. So for the moment > text.set(mode="latex", fontmaps="pdftex.map") > will do. > > I'm not so sure what the final solution in PyX will become. We kind of > need to introduce output-specific map-files ... :-/ > > Anyway. Thanks for the bug report. I've added it to the todo list. So far so good. It works for my example now. Strangely enough, going a step further an using math, I run into the following error: Traceback (most recent call last): File "test-mathpazo.py", line 16, in ? c.writePDFfile(__file__[:-3], paperformat=document.paperformat.A4) File "../../pyx/canvas.py", line 330, in wrappedindocument File "~/python/PyX-0.8.1+/pyx/document.py", line 144, in writePDFfile pdfwriter.PDFwriter(self, filename, *args, **kwargs) File "../../pyx/pdfwriter.py", line 503, in __init__ File "../../pyx/pdfwriter.py", line 138, in __init__ File "../../pyx/pdfwriter.py", line 195, in __init__ File "../../pyx/pdfwriter.py", line 230, in __init__ File "../../pyx/canvas.py", line 189, in registerPDF File "~/python/PyX-0.8.1+/pyx/text.py", line 703, in registerPDF canvas._canvas.registerPDF(self, registry) File "../../pyx/canvas.py", line 189, in registerPDF File "../../pyx/canvas.py", line 189, in registerPDF File "../../pyx/canvas.py", line 189, in registerPDF File "../pyx/type1font.py", line 145, in registerPDF File "../../pyx/pdfwriter.py", line 322, in __init__ File "../../pyx/pdfwriter.py", line 393, in __init__ File "~/python/PyX-0.8.1+/pyx/dvifile.py", line 447, in fontinfo fontinfo.fontbbox = (0, File "~/python/PyX-0.8.1+/pyx/dvifile.py", line 529, in getheight_ds return self._convert_tfm_to_ds(self.tfmfile.height[self.tfmfile.char_info[charcode].height_index]) AttributeError: 'NoneType' object has no attribute 'height_index' What's going wrong here? Micha - -- - -------------------------------------------------------------------- Michael Strass * mailto:mic...@ph... Lehrstuhl fuer Theoretische Physik I * Universitaetsstr. 1/Geb. Nord D-86135 Augsburg * Tel.: +49-821-598-3230 - -------------------------------------------------------------------- -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFD+t3JnDFQHBNYmYcRAhEiAJ4m4yLynv8RpbmSUUoT1+R8pSkOaACfSCAY vWvJi4DcUvgTxFMnbPdfvFs= =I9iA -----END PGP SIGNATURE----- |