choose_first_installed_font: Choose the first installed out of the list of choices

View source: R/fonts.R

choose_first_installed_fontR Documentation

Choose the first installed out of the list of choices

Description

As a side-effect, a warning will be thrown if none of the choices are installed.

Usage

choose_first_installed_font(choices, verbose = FALSE)

Arguments

choices

character, vector of font family names

verbose

logical, whether to display chosen font

Value

the first installed font from choices, or failing that, "sans"

Examples

if (interactive()) {
  print(choose_first_installed_font(c("Blah blah", "Arial", "Another made-up font")))
}

bvancilku/kubrand documentation built on July 26, 2022, 6:23 a.m.