Skip to content

Commit

Permalink
Loading Google font to avoid macos GHA error
Browse files Browse the repository at this point in the history
  • Loading branch information
robjhyndman committed Jun 26, 2024
1 parent 559aa3f commit d6ed0b4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion vignettes/intro.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,11 @@ options(
ggplot2.discrete.fill = c("#D55E00", "#0072B2","#009E73", "#CC79A7", "#E69F00", "#56B4E9", "#F0E442")
)
# Fira Sans font for graphics
sysfonts::font_add_google(name = "Fira Sans", family = "firasans")
showtext::showtext_auto()
ggplot2::theme_set(
ggplot2::theme_get() +
ggplot2::theme(text = ggplot2::element_text(family = "Fira Sans"))
ggplot2::theme(text = ggplot2::element_text(family = "firasans"))
)
```

Expand Down

0 comments on commit d6ed0b4

Please sign in to comment.