Skip to content

Commit 9a8d603

Browse files
authored
Fix font loading (#403)
1 parent 28c2b4e commit 9a8d603

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

src/renderer/DesktopAPI/webBinding.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,16 @@ const publicAPI: any = {
392392
return { data: fonts };
393393
},
394394

395+
async getModifiedFonts(args: WebApi.GetFonts) {
396+
const fonts = await E.ipcRenderer.invoke("getFonts");
397+
return { data: fonts };
398+
},
399+
400+
async getFontsModifiedAt(args: WebApi.GetFonts) {
401+
const fonts = await E.ipcRenderer.invoke("getFonts");
402+
return { data: fonts };
403+
},
404+
395405
async getFontFile(args: WebApi.GetFontFile) {
396406
const fontBuffer = await E.ipcRenderer.invoke("getFontFile", args);
397407

0 commit comments

Comments
 (0)