wch/extrafont — pull request #38 by gvfarns (2014-07-23 18:26:00+00:00)
Title: Remove certain AFM tags

Here we remove lines from the AFM file based on a set of regular expressions. At present we remove only "^Character" as this is the AFM tag that causes ugly warnings when used by R. Others may be added in the future as needed.

Note that gzcopy_exclude() uses text mode to read and write the files so it can do the matching--the old gzcopy() used binary. I have not run into a problem with this on my linux workstation but we may want to test under windows to make sure there are no gotchas. Also in gzcopy_exclude() we use useBytes=TRUE in the grepl() call in order to avoid the warnings this generates any time a non-ascii character appears. We might think about changing all grepl() calls to work this way at some point.