Hi. I am trying to create a chart in ggplot and using the hrbrthemes package. The latter package includes a number of fonts and I want to use one of them, Goldman Sans. In the script I include them in
geom_text( data = xdf, aes(party, votes + 0.015, label = scales::percent(votes, 0.1)), position = position_nudge(0.125), family = font_gs, size = 3, color = "black", fontface = "bold" )
but the result is a graph with only bars and no text and the console warns me that
Warning messages: 1: In grid.Call(C_stringMetric, as.graphicsAnnot(x$label)) : no font could be found for family "Goldman Sans Condensed"
and so on up to fifty warnings. But the font is installed at /Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/library/hrbrthemes/fonts/goldman-sans
What could be the problem?