Skip to contents

Create a font specification for a Liberation font, to be used with font_set().

Usage

font_liberation(variant = c("sans", "serif", "mono"))

Arguments

variant

one of "sans", "serif", or "mono".

Value

An object of class font_spec.

See also

Examples

font_liberation("sans")
#> $family
#> [1] "Liberation Sans"
#> 
#> $variant
#> [1] "sans"
#> 
#> $source
#> [1] "liberation"
#> 
#> attr(,"class")
#> [1] "font_spec"
font_liberation("mono")
#> $family
#> [1] "Liberation Mono"
#> 
#> $variant
#> [1] "mono"
#> 
#> $source
#> [1] "liberation"
#> 
#> attr(,"class")
#> [1] "font_spec"