Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build for Browser? #14

Open
Olgatron opened this issue Jul 11, 2024 · 2 comments
Open

Build for Browser? #14

Olgatron opened this issue Jul 11, 2024 · 2 comments

Comments

@Olgatron
Copy link

Hi, thanks for creating this library .

I tried adding this lib to a browser project and with some modification in the resolve.fallback for path and fs I've managed to get it running, but when i try to compress a ttf-file it just quietly stops running. I've added a console.log() before this line and it prints just fine, but looks like it doesn't get past it:

await runtimeInit

I understand that the build is designed to run on node.js****, but wondering if you know if it's possible to either create a build for browser, or if there is a way to get it running on browser?

Cheers!

@opheliagame
Copy link

@Olgatron
hey, i am running into a similar issue, have you found a solution for this yet?

@Olgatron
Copy link
Author

Hi @opheliagame, unfortunately not, I ended up sending the font file to a node.js app and doing the conversion there. All though when I was researching this I found this library that does the conversion in the browser, maybe you can find some pointers there: https://github.com/bashi/kombu.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants