fonts: Get elements of a fontset

Description Usage Arguments Examples

View source: R/font-getters.R

Description

fonts() returns the list of all font objects for a given fontset (a collection of fonts provided by fontquiver, such as Liberation or Bitstream Vera). font() returns one specific font. font_symbol() extracts the font marked as symbol font, if it exists in the fontset.

Usage

1
2
3
4
5
fonts(fontset)

font(fontset, variant, style)

font_symbol(fontset = "Symbola")

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.

style

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

Examples

1
2
3
4
5
6
font("Bitstream Vera", "Sans", "Roman")

f <- fonts("Liberation")
str(f, 1)

font_symbol("Symbola")

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