error with registered fonts
I want to create the graph, like at the link for the previous topic, but receive error:
In grid.Call(L_textBounds, as.graphicsAnnot(x$label), x$x, x$y, : Font family not found in Windows font database
Though fonts()
shows "Humor Sans" and "xksd" are installed. I use Windows 7 64bit, R 2.15.2 RStudio 0.96.331.
Any suggestions how to fix it?
I think I had the same problem some time ago. Here is what I did:
Put Humor-Sans font file into your project folder and make sure your working directory is set to the same.
Import the fonts (this might take a while) by calling
font_import()
Look through the list of fonts and see if you can find Humor-Sans by
fonts()
Load the fonts
loadfonts(device = "win")
Let me know if it works!
链接地址: http://www.djcxy.com/p/25030.html上一篇: 用ggplot对象的grid.arrange()标题背景
下一篇: 注册字体错误