You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.
Extend the Noscrape constructor to allow passing the font as an ArrayBuffer | SharedArrayBuffer in addition to the current option of passing it as a path (string).
Expected Result
The Noscrape constructor can be called with a path as a string.
The font is then loaded by the loadSync function of opentype.js.
The Noscrape constructor can be called with a buffer ArrayBuffer | SharedArrayBuffer.
In this case, the parse function of opentype.js should be used.
The text was updated successfully, but these errors were encountered:
Discussed in #44
Description
Extend the Noscrape constructor to allow passing the font as an
ArrayBuffer | SharedArrayBuffer
in addition to the current option of passing it as a path (string).Expected Result
The font is then loaded by the
loadSync
function ofopentype.js
.ArrayBuffer | SharedArrayBuffer
.In this case, the
parse
function ofopentype.js
should be used.The text was updated successfully, but these errors were encountered: