Skip to content

Use Font Frutiger in PDF-File

2 messages · Helga Neidlinger, Brian Ripley

#
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
#
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: