-
Notifications
You must be signed in to change notification settings - Fork 75
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
Feature: load woff fonts #7
Comments
A Woff file is just a zipped OTF file. After you unzip it, you can use Typr.js to work with that file. I am afraid that if I add unzipping algorithms into Typr.js, it may become four times larger. |
No problem, just looking into how I could parse it myself. Would https://github.com/andyjansson/woff-parser be a good start? |
That library looks like it needs Node.js environment, I am not sure if you can run it at client side. I would look into WOFF file specification first, then unzipped it with a ZIP library to get a OTF file. |
alright, thanks for your tips! |
Any solution on this one @adriaanmeuris ? Looking to do the same here... |
I have already implemented the support for WOFF into Typr.js, it will be published here on github within the next two weeks. |
great news -- looking forward to it |
can we re-open this, so that we can track when its ready ? |
WOFF fonts are supported by the latest release of Typr.js. Just give it a WOFF file as if it was a TTF file. It requires pako.js for Deflate decompression. It supports only WOFF and not WOFF2. |
I'm working on the multiline feature (#6), but I was wondering if there's any chance of parsing woff-fonts.
If not, is it an idea to use the woff-parsing of opentype, or would I lose better font support like stated in opentypejs/opentype.js#214?
The text was updated successfully, but these errors were encountered: