font_families: Font families and faces

Description Usage Arguments Details See Also Examples

View source: R/font-getters.R

Description

Returns families or faces as font files for a given font set. The files are organised by R nomenclature of families ("sans", "serif", "mono", and "symbol") and faces ("plain", "italic", "bold", and "bolditalic"). When a font does not have a combination, NA is reported.

Usage

1
2
3
font_families(fontset)

font_faces(fontset, family = c("sans", "serif", "mono", "symbol"))

Arguments

fontset

A string giving the name of a set of fonts (e.g. "Liberation" or"Bitstream Vera"). Use fontset_list() to obtain the list of fontsets registered in your session.

family

One of "sans", "serif", "mono" or "symbol".

Details

Note that the fonts returned by font_faces() and font_families() are constrained by R's nomenclature of fonts and are thus a subset of those returned by font_variants() and font_styles().

See Also

font_variants(), fonts()

Examples

1
2
font_families("Bitstream Vera")$mono$bold
font_faces("Bitstream Vera", "mono")

lionel-/fontquiver documentation built on May 21, 2019, 6:40 a.m.