Skip to content
Prev 200796 / 398503 Next

[Follow-up] Re: PLoS, Arial, R & linux

See Addendum at end.
On 19-Nov-09 12:17:54, Ted Harding wrote:
Addendum:

Well, the fonts were installed as above, indeed. However, according
to the PLoS Guidelines one must generate .afm files before using
them in R, along the lines of:

  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 one can use them in R's postscript() with the "family"
argument on the lines of

  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)

However,
(a) I do not have the 'ttf2afm' program;
(b) Synaptic cannot find it in the repositories.

So, I'm off on another hunt!
Ted.

--------------------------------------------------------------------
E-Mail: (Ted Harding) <Ted.Harding at manchester.ac.uk>
Fax-to-email: +44 (0)870 094 0861
Date: 19-Nov-09                                       Time: 12:58:32
------------------------------ XFMail ------------------------------