On 30.11.07, Brett Calcott wrote:
> I'm using pyx on a macbook running leopard with MacTex installed. I'd
> like to use some different fonts. I get the familiar :
> RuntimeError: cannot find type 1 font metric Times-Roman.afm
> .. when trying to use the "times" package.
> (Note that it works fine without trying to change fonts)
> The FAQ says to add this line:
> text.set(fontmaps="psfonts.map psfonts.cmz psfonts.amz")
> But it seems that "fontmaps" is no longer a valid keyword for the set
> method in texrunner. I tried adding it to .pyxrc too, but this did not
> work either.
> Is there something new here? Have I missed something somewhere?
I remember that you are using the SVN trunk, aren't you?
If yes, then instead of passing the fontmap information to the texrunner
(which is still possible, but which you rarely want to do; use the new
fontmap keyword argument, then), you should be able to pass it to the
ps/pdf writer. This way, the fontmap can be set differently for PS and
PDF output. However, I'm not sure whether this works already - you're
using an unreleased version...
What should work is usinmg the new option psfontmaps and pdffontmaps in
the .pyxrc file.