use_indiedown_gfonts: Download and Use Google Fonts

View source: R/use_indiedown_fonts.R

use_indiedown_gfontsR Documentation

Download and Use Google Fonts

Description

Download and use Google fonts, using the gfonts package.

Usage

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


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")
)


christophsax/indiedown documentation built on Dec. 12, 2024, 4:07 p.m.