search_web_fonts | R Documentation |
While it is often advisable to visit the webpage for a font repository when
looking for a font, in order to see examples etc, search_web_fonts()
provide a quick lookup based on family name in the repositories supported by
systemfonts (currently Google Fonts and
Font Squirrel). The lookup is based on fuzzy
matching provided by utils::adist()
and the matching parameters can be
controlled through ...
search_web_fonts(family, n_max = 10, ...)
family |
The font family name to look for |
n_max |
The maximum number of matches to return |
... |
Arguments passed on to
|
A data.frame with the columns family
, giving the family name of the
matched font, and repository
giving the repository it was found in.
# Requires an internet connection
# search_web_fonts("Spectral")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.