Learn R Programming

sysfonts (version 0.8.5)

font_families: List Font Families Loaded by 'sysfonts'

Description

The two versions of this function are equivalent, but the "underscore" naming is preferred.

This function lists font families currently available that can be used by R2SWF and showtext packages.

Usage

font_families()

font.families()

Arguments

Value

A character vector of available font family names.

Details

By default there are three font families loaded automatically, i.e., "sans", "serif" and "mono". If one wants to use other fonts, font_add() needs to be called to register new fonts by specifying a family name and corresponding font files. See font_add() for details about the meaning of "family name" in this context, as well as a complete example of registering and using a new font.

See Also

font_add()

Examples

Run this code
# NOT RUN {
font_families()

# }

Run the code above in your browser using DataLab