我正在尝试从 google font 获取字体,但是font_add_google
失败:
> library(showtext)
Loading required package: showtextdb
> font_add_google("Staatliches","Staat")
Error in search_db(name, db_cache, handle) : font not found
该字体存在于Google font上,但是当我尝试检查时:
library(tidyverse)
> font_info_google(db_cache= FALSE) %>% filter(family == "Staatliches")
[1] family category num_variants variants num_subsets subsets version lastModified
<0 rows> (or 0-length row.names)
知道我缺少什么吗?