To whom it may concern,

I am e-mailing you concerning the use of Arial Font in the program R and I
am using a mac.

I am trying to create graphs in R and the publisher I wish to publish an
article with needs the font to be Arial. I have tried looking around to find
out how to do this with no luck and must help on the topic is geared towards
Linux users - the only help available is from the PLoS ONE site:

   Enable the use of Arial in R

   First, convert the Arial .ttf files to afm:

   ttf2afm /usr/share/fonts/msttcorefonts/arial.ttf > ~/arial.afm
   ttf2afm /usr/share/fonts/msttcorefonts/ariali.ttf > ~/ariali.afm
   ttf2afm /usr/share/fonts/msttcorefonts/arialbd.ttf > ~/arialbd.afm
   ttf2afm /usr/share/fonts/msttcorefonts/arialbi.ttf > ~/arialbi.afm

   and then do the following in R:

   postscript(file="try.ps", horizontal=F,
   onefile=F,
   width=4, height=4,
   family=c("/home/stephen/arial.afm",
   "/home/stephen/arialbd.afm",
   "/home/stephen/ariali.afm",
   "/home/stephen/arialbi.afm"),
   pointsize=12)
   hist(rnorm(100))
   dev.off()

However, I do not have the above files and do not know where to get them.

Many thanks,

D. M

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to