Skip to content

Commit

Permalink
fix: fix font loading (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
fouwels authored Dec 30, 2023
1 parent 9b7beab commit a14edf0
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion lib/exp/browser.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,14 @@ export async function windowQueryLocalFonts (): Promise<FontData[] | undefined>
return undefined
}

return localfonts.map((x) => x)
return localfonts.map((x) => {
return {
postscriptName: x.postscriptName,
fullName: x.fullName,
family: x.family,
style: x.style
}
})
}

// https://wicg.github.io/netinfo/#-dfn-networkinformation-dfn-interface
Expand Down

0 comments on commit a14edf0

Please sign in to comment.