Warning: Font family not found in Windows font database

2,942 views
Skip to first unread message

Andrie de Vries

unread,
Aug 29, 2012, 7:08:01 AM8/29/12
to ggp...@googlegroups.com
I am updating one of my packages to work with ggplot2 version 0.9.2. This generates a set of warnings that I haven't seen before.

To do this, I installed the github version using devtools:

library(devtools)
dev_mode(TRUE)
install_github("gtable")
install_github("scales")
install_github("ggplot2")
library(ggplot2)
ggplot(iris, aes(Sepal.Width, Sepal.Length)) + geom_point()

This creates the plot, but also 8 identical warnings:

Warning messages:
1: In grid.Call(L_textBounds, as.graphicsAnnot(x$label), x$x, x$y,  :
  Font family not found in Windows font database

My sessionInfo:

sessionInfo()
R version 2.15.1 (2012-06-22)
Platform: x86_64-pc-mingw32/x64 (64-bit)
locale:
[1] LC_COLLATE=English_United Kingdom.1252 
[2] LC_CTYPE=English_United Kingdom.1252   
[3] LC_MONETARY=English_United Kingdom.1252
[4] LC_NUMERIC=C                           
[5] LC_TIME=English_United Kingdom.1252    
attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     
other attached packages:
[1] ggplot2_0.9.2  devtools_0.7.1
loaded via a namespace (and not attached):
 [1] colorspace_1.1-1   dichromat_1.2-4    digest_0.5.2       grid_2.15.1       
 [5] gtable_0.1.1       httr_0.1.1         labeling_0.1       MASS_7.3-18       
 [9] memoise_0.1        munsell_0.3        plyr_1.7.1         proto_0.3-9.2     
[13] RColorBrewer_1.0-5 RCurl_1.91-1.1     reshape2_1.2.1     scales_0.2.1      
[17] stringr_0.6        tools_2.15.1      
 

Do you have any ideas or suggestions on how to fix this?

Winston Chang

unread,
Aug 29, 2012, 1:05:28 PM8/29/12
to Andrie de Vries, ggp...@googlegroups.com
Hi Andrie -
Thank you for reporting this! It looks like this is related to a
change in the default font in the 0.9.2 release candidate -
previously, the default font was unspecified, but in the RC, it was
set to Helvetica, which isn't present on all Windows machines. I've
changed it back to the previous default value, which was just "".

To install the updated RC version, use the following:
library(devtools)
dev_mode()
install_github("gtable", branch = "gtable-0.1.1-rc")
install_github("scales", branch = "scales-0.2.2-rc")
install_github("ggplot2", branch = "ggplot2-0.9.2-rc")

I haven't added the change to the master branch yet, so if you don't
specify the branch, you won't get the fixed version.

-Winston
> --
> You received this message because you are subscribed to the ggplot2 mailing
> list.
> Please provide a reproducible example:
> https://github.com/hadley/devtools/wiki/Reproducibility
>
> To post: email ggp...@googlegroups.com
> To unsubscribe: email ggplot2+u...@googlegroups.com
> More options: http://groups.google.com/group/ggplot2
Reply all
Reply to author
Forward
0 new messages