feat(font): 添加本地字体选择功能(not done) #96
This commit is contained in:
12
src/window.d.ts
vendored
Normal file
12
src/window.d.ts
vendored
Normal 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[]>
|
||||
}
|
||||
Reference in New Issue
Block a user