yixuan / showtext

Using Fonts More Easily in R Graphs
http://cran.r-project.org/web/packages/showtext/index.html
478 stars 38 forks source link

Fontconfig error with CairoPNG on Windows R 4.2.0 (and 4.2.1) #60

Closed cpsievert closed 2 years ago

cpsievert commented 2 years ago

Discovered via https://github.com/rstudio/shiny/issues/3626

showtext::showtext_auto()
Cairo::CairoPNG()
#> Fontconfig error: Cannot load default config file: No such file: (null)

Interestingly, the same error also occurs when just setting options?

showtext::showtext_opts(dpi = 96 * 2)
Cairo::CairoPNG()
#> Fontconfig error: Cannot load default config file: No such file: (null)
cpsievert commented 2 years ago

Actually nevermind, it seems Cairo has this issue even without showtext https://github.com/s-u/Cairo/issues/37