I'm a bit lost at the moment: I have added a font to my R script via GoogleFonts and would now like to use the "bold" version. However, I can't find a way!
I've already tried various things and it doesn't work - I'm expecting a simple solution, but I just can't figure it out!
I have attached a small, reproducible example below and would be grateful if someone could give me a tip on how to use one of the "Text1" examples in Roboto-bold.
By the way, here is the GoogleFonts page for Roboto: https://fonts.google.com/specimen/Roboto
Thank you and best regards!
Current Code:
library(showtext)
font_add_google(name = "roboto", family = "roboto")
showtext_auto()
ggdraw() +
draw_text("__Text1__", x = 0.82, y = 0.69, color = "black", size = 35, family = "roboto")+
draw_text("Text1", x = 0.4, y = 0.69, color = "black", size = 35, family = "roboto")+
draw_text("Text1", x = 0.1, y = 0.69, color = "black", size = 35)
since
draw_text
is based ongeom_text
thefontface
argument works here as well: