Преглед изворни кода

v0.4.4 (#85)

* Increment version number to 0.4.4

* remove outdated link

* remove code with outdated link

* update year in license
tags/v0.4.4
Garrick Aden-Buie пре 9 месеци
родитељ
комит
277e3d3fb7
No account linked to committer's email address
4 измењених фајлова са 5 додато и 18 уклоњено
  1. +1
    -1
      DESCRIPTION
  2. +1
    -1
      LICENSE
  3. +1
    -1
      NEWS.md
  4. +2
    -15
      vignettes/ggplot2-themes.Rmd

+ 1
- 1
DESCRIPTION Прегледај датотеку

@@ -1,7 +1,7 @@
Type: Package
Package: xaringanthemer
Title: Custom 'xaringan' CSS Themes
Version: 0.4.3.9000
Version: 0.4.4
Authors@R:
person("Garrick", "Aden-Buie", , "garrick@adenbuie.com", role = c("aut", "cre"),
comment = c(ORCID = "0000-0002-7111-0077"))

+ 1
- 1
LICENSE Прегледај датотеку

@@ -1,2 +1,2 @@
YEAR: 2020
YEAR: 2025
COPYRIGHT HOLDER: Garrick Aden-Buie

+ 1
- 1
NEWS.md Прегледај датотеку

@@ -1,4 +1,4 @@
# xaringanthemer (development version)
# xaringanthemer 0.4.4

- `scale_xaringan_continuous()` and `scale_xaringan_discrete()` now set
`na.value = "grey50"` by default for compatibility with ggplot2 > 3.5.2

+ 2
- 15
vignettes/ggplot2-themes.Rmd Прегледај датотеку

@@ -318,7 +318,7 @@ you need to manually register the font with sysfonts
so that it can be used in your plots.

I found a nice open source font called
[Glacial Indifference](https://fontlibrary.org/en/font/glacial-indifference)
**Glacial Indifference**
by Alfredo Marco Pradil
available at [fontlibrary.org](https://fontlibrary.org).
In my theme style function,
@@ -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…
Откажи
Сачувај