Skip to content

Commit

Permalink
Fix font loading (#403)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tanza3D authored Oct 4, 2024
1 parent 28c2b4e commit 9a8d603
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/renderer/DesktopAPI/webBinding.ts
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,16 @@ const publicAPI: any = {
return { data: fonts };
},

async getModifiedFonts(args: WebApi.GetFonts) {
const fonts = await E.ipcRenderer.invoke("getFonts");
return { data: fonts };
},

async getFontsModifiedAt(args: WebApi.GetFonts) {
const fonts = await E.ipcRenderer.invoke("getFonts");
return { data: fonts };
},

async getFontFile(args: WebApi.GetFontFile) {
const fontBuffer = await E.ipcRenderer.invoke("getFontFile", args);

Expand Down

0 comments on commit 9a8d603

Please sign in to comment.