Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Noscrape from ArrayBuffer #48

Closed
2 tasks
schoenbergerb opened this issue Feb 1, 2024 Discussed in #44 · 0 comments · Fixed by #49
Closed
2 tasks

Noscrape from ArrayBuffer #48

schoenbergerb opened this issue Feb 1, 2024 Discussed in #44 · 0 comments · Fixed by #49
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@schoenbergerb
Copy link
Owner

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 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.
@schoenbergerb schoenbergerb added enhancement New feature or request good first issue Good for newcomers labels Feb 1, 2024
@schoenbergerb schoenbergerb self-assigned this Feb 1, 2024
@schoenbergerb schoenbergerb linked a pull request Feb 1, 2024 that will close this issue
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant