Skip to content
Prev 125956 / 398500 Next

Plotmath integral gets horrible with URWPalladio

Hi
Paul Smith wrote:
That could just be your viewer not being able to find the font (which is 
what happens to me on this example).  Try using embedFonts(), like this ...

embedFonts("figure.pdf")

... which, if it succeeds, will place the fonts in the PDF and the 
viewer should be happy.

If that does not work, a workaround is to specify a different symbol 
font, like this ...

mypal <- Type1Font("URWPalladio",
                    c("p052003l.afm", "p052004l.afm",
                      "p052023l.afm", "p052024l.afm",
                      "Symbol.afm"))
pdfFonts(mypal=mypal)
pdf(file="figure.pdf",family="mypal")
plot(0,0,type="n")
text(0,0,expression(integral(f(x)*dx, a, b)))
dev.off()


Paul