showtext / sysfont软件包中的font_add_google函数不起作用

时间:2018-12-18 18:04:09

标签: r fonts

我正在尝试从 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)

知道我缺少什么吗?

0 个答案:

没有答案