Learn R Programming

gdtools (version 0.5.0)

font_set_auto: Automatic font set

Description

Build a font_set() by detecting the best available system fonts for each role (sans, serif, mono, symbol).

For each role a list of well-known fonts is tried in order. When none is found on the system, the corresponding Liberation font is used as a guaranteed offline fallback.

RoleCandidates (in order)Fallback
sansArial, Helvetica, DejaVu SansLiberation Sans
serifTimes New Roman, Times, DejaVu SerifLiberation Serif
monoCourier New, Courier, DejaVu Sans MonoLiberation Mono
symbolSymbol, Apple SymbolsLiberation Sans

Usage

font_set_auto()

Arguments

Value

An object of class font_set.

See Also

font_set(), font_set_liberation()

Other font set functions: font_google(), font_liberation(), font_set(), font_set_liberation()

Examples

Run this code
fonts <- font_set_auto()
fonts

Run the code above in your browser using DataLab