[R] Use Font Frutiger in PDF-File

Prof Brian Ripley ripley at stats.ox.ac.uk
Thu Aug 19 13:44:32 CEST 2004


Have you read the help file?  It says (R 1.9.1)

  family: the font family to be used, one of '"AvantGarde"',
          '"Bookman"', '"Courier"', '"Helvetica"',
          '"Helvetica-Narrow"', '"NewCenturySchoolbook"', '"Palatino"'
          or '"Times"'. 

Now, it would seem if you can get away with specifying a list of *five* 
afms, but not four as in postscript.  Try

family = c("LT_14361.afm", "LT_14363.afm", "LT_14373.afm", 
           "LT_14375.afm", "sy______.afm") 

but if it does not work, remember it is undocumented.

On Thu, 19 Aug 2004, Helga Neidlinger wrote:

> Hi,
> 
> I'd like to use the font "Frutiger" in my pdf files generated by R. 
> but I only manage this if I create a postscript file with 
> postscript() and the option family = c( "LT_14361.afm", 
> "LT_14363.afm", "LT_14373.afm", "LT_14375.afm" ) and convert this 
> postscript file to pdf.
> If I specify the option 'family' like above ( = c("...afm", ..., ... 
> ... ) ) in the function pdf(), I'll get the error message: 
> "length(family)' differs between new and previous!".
> 
> Can I specify 'family' in pdf() only as "Helvetica" etc. and not as a 
> vector (like above) ?
> Is there no better and shorter way to get my favourite font into a 
> pdf file?
> 
> Thanks,
> Helga Neidlinger
> 

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595




More information about the R-help mailing list