Files
dbx/src-tauri/src/commands/system_fonts.rs
T

7 lines
227 B
Rust

#[tauri::command]
pub async fn list_system_fonts() -> Result<Vec<String>, String> {
tauri::async_runtime::spawn_blocking(|| Ok(dbx_core::jdbc::list_system_fonts()))
.await
.map_err(|err| err.to_string())?
}