google_fonts.RdThis 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.
google_fonts(name, ...)Name of the font that will be searched in Google Fonts.
Other parameters passed to curl::curl_fetch_memory().
opensans = google_fonts("Open Sans")
print(opensans)
#> $showtext_name
#> [1] "Open Sans"
#>
#> $font_ext
#> [1] "ttf"
#>
#> $regular_url
#> [1] "https://fonts.gstatic.com/s/opensans/v43/memSYaGs126MiZpBA-UvWbX2vVnXBbObj2OVZyOOSr4dVJWUgsjZ0B4gaVc.ttf"
#>
#> $bold_url
#> [1] "https://fonts.gstatic.com/s/opensans/v43/memSYaGs126MiZpBA-UvWbX2vVnXBbObj2OVZyOOSr4dVJWUgsg-1x4gaVc.ttf"
#>
#> $italic_url
#> [1] "https://fonts.gstatic.com/s/opensans/v43/memQYaGs126MiZpBA-UFUIcVXSCEkx2cmqvXlWq8tWZ0Pw86hd0Rk8ZkWVAexQ.ttf"
#>
#> $bolditalic_url
#> [1] "https://fonts.gstatic.com/s/opensans/v43/memQYaGs126MiZpBA-UFUIcVXSCEkx2cmqvXlWq8tWZ0Pw86hd0RkyFjWVAexQ.ttf"
#>
if (FALSE) { # \dontrun{
## Install the Open Sans font to the showtexdb package
font_install(opensans)
} # }