Is there a way to directly access and implement free fonts (like Google Fonts) with R for graphs (ggplot2), without having them installed on my PC or Mac?
The solution has changed a bit in these years. font_add_google() was moved to the sysfonts package. You also need to activate showtext.
To the beginning of your script or your Quarto file add:
sysfonts::font_add_google(name = "Amatic SC", family = "amatic-sc")
showtext::showtext_auto()
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With