Not able to install xkcd fonts

前端 未结 3 575
挽巷
挽巷 2021-01-19 11:59

I was trying the xkcd font as per the instructions given in the vignette: vignette(\"xkcd-intro\")

However get an error on the following step:



        
3条回答
  •  花落未央
    2021-01-19 12:11

    After a lot of trial and error, I was able to get it to work myself. Essentially, you have to copy the downloaded font file to all the folders in font.paths().

    On OS X:

    for(dirs in font.paths()) {
        file.copy(file.path(dirs,"xkcd.ttf"), "~/Library/Fonts/")
    }
    

    And it's working!!

提交回复
热议问题