title: Problems with extrafonts in R - afm errors
body: <p>I'm trying to use the extrafonts package. When I import the fonts I get numerous warnings. When I try to use the fonts in the pdf() command, I get numerous warnings about unknown AFM entities. I've seen a number of posts that suggest removing the copyright line from the AFM file, but that would require fixing hundreds of files. I did edit a couple of files, but the problems continue. About the only fonts I can get to work are the core fonts available on Windows like Arial and Courier. When I tried Palatino Linotype, I get a large number of warnings (font width unknown...) and the pdf output (a plot) has no glyphs. This font works in other programs, like Word.  In other cases (eg, Franklin Gothic Book) I get some sort of default font, but at least glyphs appear.</p>
  
  <p>My pdf command looks like this:  </p>
  
  <pre><code>pdf("plot_out2.pdf", family= "Franklin Gothic Book", width=8.5, height=11)
  </code></pre>
  
  <p>This produces these warnings:</p>
  
  <pre><code>Warning messages:
  1: In pdf("plot_out2.pdf", family = "Franklin Gothic Book", width = 8.5,  :
    unknown AFM entity encountered
  2: In pdf("plot_out2.pdf", family = "Franklin Gothic Book", width = 8.5,  :
    unknown AFM entity encountered
  3: In pdf("plot_out2.pdf", family = "Franklin Gothic Book", width = 8.5,  :
    unknown AFM entity encountered
  4: In pdf("plot_out2.pdf", family = "Franklin Gothic Book", width = 8.5,  :
    unknown AFM entity encountered
  </code></pre>
  
  <p>Do I need to re-install the fonts? If so, do I need to delete something first?
  Is there a utility for repairing all the afm.gz files?
  Do I need to embed the fonts, even when I'm reading them on the same computer that generated the pdf?</p>
  
  <p>Environment:<br>
  Windows 7, 64 bit. RStudio, R 2.15.
  Some of my fonts were installed by CorelDraw, others by ArcMap. Probably other sources, too.</p>