google_font: Specify Google Font

View source: R/utils.R

google_fontR Documentation

Specify Google Font

Description

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().

Usage

google_font(family, ..., languages = NULL)

Arguments

family

Font family

...

Font weights to include, example "400", "400i"

languages

Font languages to include (dependent on the font.) See google_language_codes().

Value

A "google_font" object.

Examples

google_font("Josefin Sans", "400", "400i", "600i", "700")
google_font("Josefin Sans", languages = c("latin-ext", "vietnamese"))

xaringanthemer documentation built on Sept. 15, 2024, 5:06 p.m.