Issues with loading Google fonts in a ggplot

I constantly run into the following error when trying to use Google fonts in my ggplot:

Here's what I'm doing to load the fonts into the system:

font_add_google("Encode Sans Condensed", "encode", regular.wt = 400, bold.wt = 600, db_cache = FALSE)
font_add_google("Inconsolata", "incon", db_cache = FALSE)
showtext_auto()

I then use the "incon" and "encode" fonts as the family type for the titles, subtitles, etc. and continually get the "In grid.Call(C_textBounds, as.graphicsAnnot(x$label), ... : font family not found in Windows font database" error even though the font appears when I use "sysfonts::font_families_google()". Any suggestions on what I might be doing wrong?

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.