Learn R Programming

sysfonts (version 0.8.5)

font_info_google: Display Information of Available Google Fonts

Description

This function returns a data frame that contains the metadata of font families available in Google Fonts, for example the family name, available font face variants, the version number, etc. When running this function for the first time, it may take a few seconds to fetch the database. This function requires the jsonlite and curl packages.

Usage

font_info_google(db_cache = TRUE, handle = curl::new_handle())

Arguments

db_cache

whether to obtain font metadata from a cache site. Using cache is typically faster, but not as update-to-date as using the official API. If db_cache is set to FALSE, then metadata are retrieved from the Google Fonts API.

handle

a curl handle object passed to curl::curl_download() and curl::curl_fetch_memory().

Value

A data frame containing metadata of Google Fonts.

See Also

font_families_google()

Examples

Run this code
# NOT RUN {
font_info_google()
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab