瀏覽代碼

remove code with outdated link

pull/85/head
Garrick Aden-Buie 1 年之前
父節點
當前提交
df19a4c664
無法提取簽署
共有 1 個檔案被更改,包括 1 行新增 和 14 行删除
  1. +1
    -14
      vignettes/ggplot2-themes.Rmd

+ 1
- 14
vignettes/ggplot2-themes.Rmd 查看文件

@@ -339,20 +339,7 @@ the `sysfonts::font_add()` function requires the font file to be local.

By inspecting the CSS file at the link I used in `text_font_url`,
I found a direct URL for the `.ttf` files for _GlacialIndifferenceRegular_.
I've included the code I used to download the font to a temporary file below,
but in case the URL breaks, I've included _Glacial Indifference_
in the xaringanthemer package.

```{r eval=FALSE}
font_url <- file.path(
"https://fontlibrary.org/assets/fonts/glacial-indifference/",
"5f2cf277506e19ec77729122f27b1faf/0820b3c58fed35de298219f314635982",
"GlacialIndifferenceRegular.ttf"
)

font_temp <- tempfile()
download.file(font_url, font_temp)
```
I've included _Glacial Indifference_ in the xaringanthemer package.

```{r sysfonts-custom-font, fig.width = 10}
# Path to the local custom font file

Loading…
取消
儲存