get_usable_family: Checks if a font family is usable and returns a usable font...

View source: R/tntp_style.R

get_usable_familyR Documentation

Checks if a font family is usable and returns a usable font if not

Description

Helper function. Checks if a given family value is available, and if not returns the default font family ("sans" or user provided)

Usage

get_usable_family(family, silent = FALSE, default_family = "sans")

Arguments

family

the font family to check as a character

silent

logical. If TRUE doesn't raise a warning if the font family is unavailable

default_family

defaults to "sans", but can be set to another fallback family.

Value

a character of a usable font family


tntp/tntpr documentation built on March 27, 2024, 6:26 p.m.