Hi Michael,

On 20.02.06, Michael Strass wrote:
> I encountered problems using the PDFwriter in combination with the
> Palatino font. It seems like the font is not embedded at all in the
> resulting PDF. Here's a minimal example:
> 
> from pyx import *
> 
> text.set(mode="latex")
> text.preamble(r"\usepackage[T1]{fontenc}")
> text.preamble(r"\usepackage{mathpazo}")
> 
> c = canvas.canvas()
> 
> c.text(0, 0, r"This is an example for Palatino font!")
> 
> c.writePDFfile(__file__[:-3], paperformat=document.paperformat.A4)
> 
> 
> I used the CVS version of PyX together with teTeX 3.0. The Palatino font
> becomes substituted in the Acrobat Reader 7.0 by Adobe Sans MM. For the
> postscript file everything is fine. For the sake of completeness I
> attach the output for the PDF. Any ideas?

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.


André

-- 
by  _ _      _    Dr. André Wobst
   / \ \    / )   [EMAIL PROTECTED], http://www.wobsta.de/
  / _ \ \/\/ /    PyX - High quality PostScript and PDF figures
 (_/ \_)_/\_/     with Python & TeX: visit http://pyx.sourceforge.net/


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
PyX-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyx-user

Reply via email to