fontquiver (version 0.2.1)

font_variants: Font variants

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

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

Run this code
font_variants("Bitstream Vera")
font_variants("Bitstream Vera")$Sans$Oblique
font_styles("Bitstream Vera", "Sans")

Run the code above in your browser using DataLab