Skip to contents

list_fonts() reports the font families that R can currently see, which is what a theme's preferred fonts are matched against. A font that is installed on the system but missing from this list is not available to R yet; see the Fonts section of theme_set for how to make it so.

Usage

list_fonts(pattern = NULL)

Arguments

pattern

Optionally, a string with which to filter the font families returned, matched without regard to case. For example, list_fonts("sans") returns every family whose name includes "sans".

Value

A vector of font family names.

See also

Examples

head(list_fonts())
#> [1] "Academy Engraved LET" "Al Bayan"             "Al Nile"             
#> [4] "Al Tarikh"            "American Typewriter"  "Andale Mono"