Learn R Programming

gdtools (version 0.6.0)

sys_fonts_reset: 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()

Arguments

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(), register_stixmath(), stixmath_file()

Examples

Run this code
sys_fonts_reset()

Run the code above in your browser using DataLab