Load open source fonts from ggswim's GitHub repository to the user's cache directory.
Font files and their associated licenses are available on the main branch.
Usage
load_fonts(
fonts = c("bootstrap-icons", "fa-brands-400", "fa-regular-400", "fa-solid-900"),
verbose = TRUE
)Details
Currently the following fonts are supported:
FontAwesome
Brands
Regular
Solid
Bootstrap
Users can choose which fonts to load by providing a vector of font family names. The default is to load all supported fonts. Valid cached files are reused, so subsequent calls can work offline. Missing or unreadable fonts are downloaded to a temporary file and validated before entering the cache. Download or registration failures produce a warning and skip that font.
