![]() ![]() #3: In grid.Call(C_textBounds, as.graphicsAnnot(x$label), x$x, x$y, : #2: In grid.Call(C_textBounds, as.graphicsAnnot(x$label), x$x, x$y, : # font family not found in Windows font database #1: In grid.Call(C_textBounds, as.graphicsAnnot(x$label), x$x, x$y, : Theme(plot.title = element_text(size = 14, family = "Calibri")) # Only three fonts seem to have been imported. ![]() Here's some code chunks with an R base dataset that throws the error: library(ggplot2) I have also tried to manually copy all the Windows ttf files from C:\WINDOWS\Fonts to C:\Users.\Documents\R\R-3.5.1\library\extrafontdb\metrics, same issue persists. I've tried importing the Windows fonts using the extrafont package as well as using the showtext packakge. I'm using R version 3.5.1 running on Windows. The importing doens't throw any errors, but the fonts are not available for use in plots. I've tried breaking down the problem and noticed that the same problem occurs importing regular Windows fonts. My end goal is to include my company's custom font(.ttf files) R for use in ggplot and RMarkdown. ![]() I'm having some trouble importing fonts in the R environment. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |