pub fn font_dir() -> Option<PathBuf>Expand description
Returns the path to the user’s font directory.
The returned value depends on the operating system and is either a Some, containing a value from the following table, or a None.
| Platform | Value | Example |
|---|---|---|
| Linux | $XDG_DATA_HOME/fonts or $HOME/.local/share/fonts | /home/alice/.local/share/fonts |
| macOS | $HOME/Library/Fonts | /Users/Alice/Library/Fonts |
| Windows | – | – |