use_indiedown_gfonts: Download and Use Google Fonts

Description Usage Arguments Value Examples

View source: R/use_indiedown_fonts.R

Description

Download and use Google fonts, using the gfonts package.

Usage

1
2
3
4
5
use_indiedown_gfonts(
  path = ".",
  id = "roboto",
  variants = c("regular", "300italic", "700", "700italic")
)

Arguments

path

Package path

id

Id of the font, correspond to column id from get_all_fonts.

variants

Variant(s) to download, default is to includes all available ones.

Value

This function is called for its side effects and returns NULL, invisibly.

Examples

1
2
3
4
5
6
7
8
path <- file.path(tempdir(), "mydown")
create_indiedown_package(path, overwrite = TRUE)
# Use Lora, instead of default Roboto
use_indiedown_gfonts(
  path = path,
  id = "lora",
  variants = c("regular", "italic", "700", "700italic")
)

indiedown documentation built on March 22, 2021, 5:07 p.m.