font_families: List Font Families Loaded by 'sysfonts'

Description Usage Details Value Author(s) See Also Examples

View source: R/font.R

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

1
2
3

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.

Value

A character vector of available font family names.

Author(s)

Yixuan Qiu <https://statr.me/>

See Also

font_add()

Examples

1

yixuan/sysfonts documentation built on May 14, 2020, 5:50 a.m.