feat(font): 添加本地字体选择功能(not done) #96

This commit is contained in:
log1997
2025-12-10 17:54:59 +08:00
parent 9dece20aa8
commit 3cd7788517
6 changed files with 161 additions and 43 deletions

12
src/window.d.ts vendored Normal file
View File

@@ -0,0 +1,12 @@
// src/types/window.d.ts
interface FontData {
family: string
fullName: string
postscriptName: string
style: string
blob: () => Promise<Blob>
}
interface Window {
queryLocalFonts?: (options?) => Promise<FontData[]>
}