Description Usage Arguments Value Examples
View source: R/use_indiedown_fonts.R
Download and use Google fonts, using the gfonts package.
1 2 3 4 5 | use_indiedown_gfonts(
path = ".",
id = "roboto",
variants = c("regular", "300italic", "700", "700italic")
)
|
path |
Package path |
id |
Id of the font, correspond to column |
variants |
Variant(s) to download, default is to includes all available ones. |
This function is called for its side effects and returns NULL
, invisibly.
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")
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.