Learn R Programming

showtextdb (version 3.0)

google_fonts: Meta-information for the Google Fonts

Description

This function provides information of Google Fonts that can be used in the font_install() function. It will try to include all font faces available for a specified family name.

Usage

google_fonts(name, ...)

Arguments

name

Name of the font that will be searched in Google Fonts.

Other parameters passed to curl::curl_fetch_memory().

Examples

Run this code
# NOT RUN {
opensans = google_fonts("Open Sans")
print(opensans)

# }
# NOT RUN {
## Install the Open Sans font to the showtexdb package
font_install(opensans)
# }

Run the code above in your browser using DataLab