Tauri Core API - v2.6.0
    Preparing search index...

    Function fontDir

    • Returns the path to the user's font directory.

      • Linux: Resolves to $XDG_DATA_HOME/fonts or $HOME/.local/share/fonts.
      • macOS: Resolves to $HOME/Library/Fonts.
      • Windows: Not supported.

      Returns Promise<string>

      import { fontDir } from '@tauri-apps/api/path';
      const fontDirPath = await fontDir();

      1.0.0