get_usable_family {tntpr}R 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


[Package tntpr version 1.0.3 Index]