The two versions of this function are equivalent, but the "underscore" naming is preferred.
This function gets/sets the search paths for font files.
font_add() for details about how sysfonts looks for
font files. There is also a complete example showing the usage of these
functions in the help page of
1 2 3
a character vector indicating the search paths to be prepended. If the argument is missing, the function will return the current search paths.
Default search paths will be assigned when package is loaded:
For Windows, it is
%windir%\Fonts, usually expanded
For Mac OS, default paths are
~/Library/Fonts and their subdirectories
For Linux and other Unix-like OS,
~/.local/share/fonts, and their subdirectories
The updated search paths.
Yixuan Qiu <https://statr.me/>
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.