google_font | R Documentation |
Builds Google Fonts URL from family name. Extra weights are given in the
...
parameters. Languages can be specified in languages
and must one or
more of the language codes as given by google_language_codes()
.
google_font(family, ..., languages = NULL)
family |
Font family |
... |
Font weights to include, example "400", "400i" |
languages |
Font languages to include (dependent on the font.) See
|
A "google_font"
object.
google_font("Josefin Sans", "400", "400i", "600i", "700")
google_font("Josefin Sans", languages = c("latin-ext", "vietnamese"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.