You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I installed some new truetype fonts that I wanted to use (and they work fine in MS Word), but font_import() skips right over it. I've also tried specifying the path and specifying the filename with the pattern argument. No luck.
I just get the following error:
Error in data.frame(fontfile = ttfiles, FontName = "", stringsAsFactors = FALSE) :
arguments imply differing number of rows: 0, 1
I also tried resetting the database and importing everything again, and it skips right over them.
The text was updated successfully, but these errors were encountered:
Fonts installed for all users goes to - C:/Windows/Fonts/
Fonts installed for single user goes to - C:/Users/XXX/AppData/Local/Microsoft/Windows/Fonts/ (where XXX is Windows Username)
Solution -
font_import(paths = "C:/Users/XXX/AppData/Local/Microsoft/Windows")
OR
Go to C:/Users/XXX/AppData/Local/Microsoft/Windows", select all, right-click, select Install for all users, and in R use extrafonts::font_import()
PS: The first method is faster because of relatively fewer fonts in C:/Users/XXX/AppData/Local/Microsoft/Windows than in C:/Windows/Fonts/
I installed some new truetype fonts that I wanted to use (and they work fine in MS Word), but font_import() skips right over it. I've also tried specifying the path and specifying the filename with the pattern argument. No luck.
I just get the following error:
Error in data.frame(fontfile = ttfiles, FontName = "", stringsAsFactors = FALSE) :
arguments imply differing number of rows: 0, 1
I also tried resetting the database and importing everything again, and it skips right over them.
The text was updated successfully, but these errors were encountered: