font_variants: Font variants

Description Usage Arguments Details See Also Examples

Description

font_variants() returns a tree of fonts organised as per fontconfig's nomenclature. The first level contains variants of a font and the second level contains font styles.

Usage

1
2
3
font_variants(fontset)

font_styles(fontset, variant)

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.

variant

Font variant, as per Fontconfig's nomenclature. Use fontset_variants() to find out which variants are available for a fontset.

Details

See also font_families() and font_faces() for similar collections organised according to R nomenclature of fonts. Note that variants and styles are a super set of R families and faces and may contain more fonts.

See Also

font_families(), fonts()

Examples

1
2
3
font_variants("Bitstream Vera")
font_variants("Bitstream Vera")$Sans$Oblique
font_styles("Bitstream Vera", "Sans")

fontquiver documentation built on May 1, 2019, 9:52 p.m.