fontDir
fontDir():
Promise<string>
Defined in: path.ts:374
Returns the path to the user’s font directory.
- Linux: Resolves to
$XDG_DATA_HOME/fontsor$HOME/.local/share/fonts. - macOS: Resolves to
$HOME/Library/Fonts. - Windows: Not supported.
Promise<string>
import { fontDir } from '@tauri-apps/api/path';const fontDirPath = await fontDir();1.0.0
© 2025 Tauri Contributors. CC-BY / MIT