I'm trying to import Garamond into R using the extrafont
package. I am able to successfully import other fonts when using the unspecified font_import()
function directed towards the font location folder, but I'm missing out several fonts located in that folder. Any suggestion why only some fonts are imported and others not?
I've tried the
font_import(pattern = "Garamond.ttf")
ttf_import(pattern = "Garamond.ttf")
with the following error message:
Scanning ttf files in /Library/Fonts/, /System/Library/Fonts, ~/Library/Fonts/ ... Extracting .afm files from .ttf files... Error in data.frame(fontfile = ttfiles, FontName = "", stringsAsFactors = FALSE) : arguments imply differing number of rows: 0, 1
Garamond.ttf
exist in your Fonts folder? – Gregor ThomasGaramond.ttf
is in your fonts folder. Perhaps you have it installed as an OTF, or perhaps you don't have it all, or perhaps it's somewhere else... – Gregor Thomas