| Crates.io | tauri-plugin-system-fonts |
| lib.rs | tauri-plugin-system-fonts |
| version | 2.0.2 |
| created_at | 2025-10-20 17:28:49.883878+00 |
| updated_at | 2025-10-21 03:56:07.307097+00 |
| description | Support getting all fonts installed on your system. |
| homepage | |
| repository | https://github.com/ayangweb/tauri-plugin-system-fonts |
| max_upload_size | |
| id | 1892372 |
| size | 196,390 |
This plugin only works on tauri v2, if you need the v1 plugin, feel free to submit a PR!
Support getting all fonts installed on your system.
| Platform | Supported |
|---|---|
| Windows | ✅ |
| macOS | ✅ |
| Linux | ✅ |
| Android | ❌ |
| iOS | ❌ |
cargo add tauri-plugin-system-fonts
You can install the JavaScript Guest bindings using your preferred JavaScript package manager:
pnpm add tauri-plugin-system-fonts-api
src-tauri/src/lib.rs
pub fn run() {
tauri::Builder::default()
+ .plugin(tauri_plugin_system_fonts::init())
.run(tauri::generate_context!())
.expect("error while running tauri application");
}
src-tauri/capabilities/default.json
{
...
"permissions": [
...
+ "system-fonts:default"
]
}
Afterwards all the plugin's APIs are available through the JavaScript guest bindings:
import { getSystemFonts } from "tauri-plugin-system-fonts-api";
const fonts = await getSystemFonts();
| Method | Description |
|---|---|
getSystemFonts |
Get all fonts installed on the system. |
git clone https://github.com/ayangweb/tauri-plugin-system-fonts.git
pnpm install
pnpm build
cd examples/tauri-app
pnpm install
pnpm tauri dev