This commit is contained in:
2023-05-20 14:11:35 +02:00
parent 7f6b7f4695
commit 7576850ae0
109 changed files with 10720 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
use font_kit::source::SystemSource;
pub struct Font {
pub path: String,
}
#[tauri::command]
pub fn get_system_fonts() -> Option<Vec<String>> {
let source = SystemSource::new();
let found_families = source.all_families();
found_families.ok()
}