# Download font(s) and add to package
# https://rstudio.github.io/bslib/articles/recipes.html#fonts-1
library(gfonts)
font_dir <- "inst/www/fonts"
if (!dir.exists(font_dir)) dir.create(font_dir, recursive = T)
# download_font("roboto", output_dir = font_dir)
# download_font("roboto-slab", output_dir = font_dir)
# setup_font("roboto", font_dir)
# setup_font("roboto-slab", font_dir)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.