fontDir

external fun fontDir(): Promise<String>(source)

Returns the path to the user's font directory.

Platform-specific

  • Android: Unsupported. The {@link BaseDirectory.Font} variant does not exist there and the call rejects.

  • Linux: Resolves to $XDG_DATA_HOME/fonts or $HOME/.local/share/fonts.

  • macOS: Resolves to $HOME/Library/Fonts.

  • Windows: Not supported.

Since

1.0.0