Closed ThoDuyNguyen closed 7 years ago
You can see what are available fonts by running the following command:
gdtools::sys_fonts()
The column family
contains family names.
Then in the ggiraph call, add the parameter fonts as below (see rvg::dsvg
for more details):
ggiraph(..., fonts = list(sans = "a_sansserif_font", serif = "a_serif_font", mono = "mono_font", symbol = "symbol_font"))
The following vignette is explaining things better than I do: https://CRAN.R-project.org/package=svglite/vignettes/fonts.html (dsvg
do not handle user font aliases for now).
David
> gdtools::sys_fonts()
Fontconfig error: Cannot load default config file
[1] foundry family file slant weight
<0 rows> (or 0-length row.names)
After googling for a while, this could be caused by the OS not on R side. I haven't found the solution yet but closed the case.
Thank for your help.
OK
That thread may help: https://groups.google.com/forum/#!topic/reporters-package/9WP5uqP2hr8
In short: "I had to update HomeBrew and install the cairo package manually"
++ David
My attempt
My session info:
The error message I get in RStudio Viewer:
Error in console log
What should I do in this case? It seems I need to install a missing font but I don't know which font.