font_spec {thematic} | R Documentation |
Font specification
Description
Specify a collection of font families. The first font family supported
by the relevant device (i.e., the device that is open, or will be opened, at
plotting time) is used by thematic. If a given font family is not supported
by the default, but is a Google Font and
install = TRUE
, the font will be downloaded, cached, and registered
for use the showtext and ragg packages.
Usage
font_spec(
families = "",
scale = 1,
install = is_installed("ragg") || is_installed("showtext"),
update = FALSE,
quiet = TRUE
)
Arguments
families |
a character vector of font families. |
scale |
numerical constant applied to font sizes. |
install |
whether to download and register font |
update |
if |
quiet |
whether to suppress download messages. |
Value
the input arguments as a list.
See Also
thematic_save_plot()
, thematic_on()
, font_cache_set()