sys_fonts_reset: Refresh the list of system fonts

View source: R/font_family_exists.R

sys_fonts_resetR Documentation

Refresh the list of system fonts

Description

The list of system fonts used by sys_fonts() and font_family_exists() is read once per R session, as reading it is slow when many fonts are installed. Call this function after installing a font on the system during the session so that it is found.

It also resets the font cache of 'systemfonts' (systemfonts::reset_font_cache()).

Usage

sys_fonts_reset()

Value

NULL, invisibly.

See Also

Other functions for font management: addGFontHtmlDependency(), fonts_cache_dir(), gfontHtmlDependency(), install_gfont_script(), installed_gfonts(), liberationmonoHtmlDependency(), liberationsansHtmlDependency(), liberationserifHtmlDependency(), register_gfont(), register_liberationmono(), register_liberationsans(), register_liberationserif()

Examples

sys_fonts_reset()

gdtools documentation built on Oct. 16, 2026, 1:09 a.m.