pub fn font_dir() -> Option<PathBuf>
Expand description
Returns the path to the user’s font directory.
§Platform-specific
- Linux: Resolves to
$XDG_DATA_HOME/fonts
or$HOME/.local/share/fonts
. - macOS: Resolves to
$HOME/Library/Fonts
. - Windows: Not supported.