Returns the path to the user's font directory.
$XDG_DATA_HOME/fonts
$HOME/.local/share/fonts
$HOME/Library/Fonts
import { fontDir } from '@tauri-apps/api/path';const fontDirPath = await fontDir(); Copy
import { fontDir } from '@tauri-apps/api/path';const fontDirPath = await fontDir();
1.0.0
Returns the path to the user's font directory.
Platform-specific
$XDG_DATA_HOME/fonts
or$HOME/.local/share/fonts
.$HOME/Library/Fonts
.