extrafont icon indicating copy to clipboard operation
extrafont copied to clipboard

Error in if (grepl("Symbol", FamilyName))

Open benzipperer opened this issue 10 years ago • 2 comments

How can I resolve the following error, which I receive during font_import(). I'm using extrafont_0.16:

.... /usr/share/fonts/truetype/unfonts-core/UnPilgiBold.ttf => /usr/local/lib/R/site-library/extrafontdb/metrics/UnPilgiBold /usr/share/fonts/truetype/unfonts-core/UnPilgi.ttf => /usr/local/lib/R/site-library/extrafontdb/metrics/UnPilgi /usr/share/fonts/truetype/unifont/unifont.ttf => /usr/local/lib/R/site-library/extrafontdb/metrics/unifont Found FontName for 1510 fonts. Scanning afm files in /usr/local/lib/R/site-library/extrafontdb/metrics Error in if (grepl("Symbol", FamilyName)) Symbol <- TRUE else Symbol <- FALSE : argument is of length zero In addition: There were 50 or more warnings (use warnings() to see the first 50)

benzipperer avatar May 31 '14 02:05 benzipperer

I know this is quite old, but I just bumped into the same issue. The issue seems to have been solved in my case after I installed the extrafontdb library.

sam81 avatar Jan 02 '20 12:01 sam81

looks like I spoke too early, extrafontdb was already installed, the fact that it worked after I re-installed it was probably just a coincidence. Now the issue is occurring when scanning all the font paths in my system, but not when scanning only some of them.

sam81 avatar Jan 02 '20 13:01 sam81