Hi,

I've been searching around the web and I found this thread which discusses
exactly the same problem that I am facing when using Cairo on my Mac.  When
I use the following code:

library(Cairo)
Cairo(file='cairo_created', type='pdf', dpi=100)
plot(1:10)
dev.off()

This produces a pdf with the text italicized.  The same code but using pdf()
as the graphics device:

pdf(file='pdf_created.pdf')
plot(1:10)
dev.off()

Creates a text without italics.  According to Simon, a work around could be
achieved by doing the following:

CairoFonts("Arial:style
=Regular","Arial:style=Bold","Arial:style=Italic","Helvetica","Symbol")

But from my understanding this just replaces the Helvetica font with the
Arial font.  Is there a solution that works if I still want to use
Helvetica?

Thanks,

Fong

        [[alternative HTML version deleted]]

_______________________________________________
R-SIG-Mac mailing list
[email protected]
https://stat.ethz.ch/mailman/listinfo/r-sig-mac

Reply via email to