font_families: Font families and faces

Description Usage Arguments Details See Also Examples

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")

Example output

$ttf
[1] "/usr/local/lib/R/site-library/fontBitstreamVera/fonts/bitstream-vera-fonts/VeraMoBd.ttf"

$woff
[1] "/usr/local/lib/R/site-library/fontBitstreamVera/fonts/bitstream-vera-fonts/VeraMoBd.woff"

$fontset
[1] "Bitstream Vera"

$name
[1] "Bitstream Vera Sans Mono"

$fullname
[1] "Bitstream Vera Sans Mono Bold"

$variant
[1] "sans-mono"

$style
[1] "bold"

$weight
[1] 200

$family
[1] "mono"

$face
[1] "bold"

$package
[1] "fontBitstreamVera"

$version
[1] "1.10"

attr(,"class")
[1] "font"
$plain
$ttf
[1] "/usr/local/lib/R/site-library/fontBitstreamVera/fonts/bitstream-vera-fonts/VeraMono.ttf"

$woff
[1] "/usr/local/lib/R/site-library/fontBitstreamVera/fonts/bitstream-vera-fonts/VeraMono.woff"

$fontset
[1] "Bitstream Vera"

$name
[1] "Bitstream Vera Sans Mono"

$fullname
[1] "Bitstream Vera Sans Mono Roman"

$variant
[1] "sans-mono"

$style
[1] "roman"

$weight
[1] 80

$family
[1] "mono"

$face
[1] "plain"

$package
[1] "fontBitstreamVera"

$version
[1] "1.10"

attr(,"class")
[1] "font"

$italic
$ttf
[1] "/usr/local/lib/R/site-library/fontBitstreamVera/fonts/bitstream-vera-fonts/VeraMoIt.ttf"

$woff
[1] "/usr/local/lib/R/site-library/fontBitstreamVera/fonts/bitstream-vera-fonts/VeraMoIt.woff"

$fontset
[1] "Bitstream Vera"

$name
[1] "Bitstream Vera Sans Mono"

$fullname
[1] "Bitstream Vera Sans Mono Oblique"

$variant
[1] "sans-mono"

$style
[1] "oblique"

$weight
[1] 80

$family
[1] "mono"

$face
[1] "italic"

$package
[1] "fontBitstreamVera"

$version
[1] "1.10"

attr(,"class")
[1] "font"

$bold
$ttf
[1] "/usr/local/lib/R/site-library/fontBitstreamVera/fonts/bitstream-vera-fonts/VeraMoBd.ttf"

$woff
[1] "/usr/local/lib/R/site-library/fontBitstreamVera/fonts/bitstream-vera-fonts/VeraMoBd.woff"

$fontset
[1] "Bitstream Vera"

$name
[1] "Bitstream Vera Sans Mono"

$fullname
[1] "Bitstream Vera Sans Mono Bold"

$variant
[1] "sans-mono"

$style
[1] "bold"

$weight
[1] 200

$family
[1] "mono"

$face
[1] "bold"

$package
[1] "fontBitstreamVera"

$version
[1] "1.10"

attr(,"class")
[1] "font"

$bolditalic
$ttf
[1] "/usr/local/lib/R/site-library/fontBitstreamVera/fonts/bitstream-vera-fonts/VeraMoBI.ttf"

$woff
[1] "/usr/local/lib/R/site-library/fontBitstreamVera/fonts/bitstream-vera-fonts/VeraMoBI.woff"

$fontset
[1] "Bitstream Vera"

$name
[1] "Bitstream Vera Sans Mono"

$fullname
[1] "Bitstream Vera Sans Mono Bold Oblique"

$variant
[1] "sans-mono"

$style
[1] "bold-oblique"

$weight
[1] 200

$family
[1] "mono"

$face
[1] "bolditalic"

$package
[1] "fontBitstreamVera"

$version
[1] "1.10"

attr(,"class")
[1] "font"

$symbol
NULL

attr(,"class")
[1] "font_faces"

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