list_fonts: Listing the fonts available to R

View source: R/theme_fonts.R

list_fontsR Documentation

Listing the fonts available to R

Description

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

Other themes: check_colors, theme_colorblind, theme_medium, theme_set

Examples

head(list_fonts())

autograph documentation built on Nov. 16, 2026, 5:08 p.m.