konradsemsch / ggrapid

Create neat & complete ggplot visualizations with as little code as possible
Other
24 stars 2 forks source link

Warning about missing fonts #1

Open nayefahmad opened 5 years ago

nayefahmad commented 5 years ago

Whenever I make a plot, I get several messages saying this:

Warning in grid.Call(C_textBounds, as.graphicsAnnot(x$label), x$x, x$y, : font family not found in Windows font database

I've been looking through the documentation to find what font I might need, and how to ensure it's available, but I can't find anything.

konradsemsch commented 4 years ago

Hi and thank you for your feedback! I assume that the issue could be connected to those couple of lines of code in the zzz.R file which are required for the hrbrthemes package to work properly - that's where the main theme for plotting is pulled from.

Could you please provide your session info?

Also, what happens when you try to execute the following code:

pdfFonts <- grDevices::pdfFonts
extrafont::loadfonts("pdf", quiet = TRUE)

Can hrbrthemes be installed and attached?