-
Notifications
You must be signed in to change notification settings - Fork 28
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
WOFF 2.0 #3
Comments
That's out of scope of this project, sorry. If someone wish to do it - no problems, but i will not keep it in pending task. |
The compression algorithm has been ported to JavaScript: https://github.com/devongovett/brotli.js However, I don't yet understand whether it's just about compressing the generated woff or whether the whole ttf2woff mechanism would have to be adapted completely. @devongovett, do you have any insights into this? |
In addition to compression, WOFF2 also does additional transforms to the glyf and loca tables prior to compression, and has a different directory structure. Check out the spec for more details. |
I see, thanks a lot. |
Anyway, i think it's better to make separate project for 2.0. For fontello i need small size, and have no special interest to spend time for one more convertor. |
Would you want this to be done outside of fontello? Judging from the fact that the new format is already implemented in Chrome and Opera (http://caniuse.com/#feat=woff2) and will probably ship in Firefox in the near future (https://bugzilla.mozilla.org/show_bug.cgi?id=1064737), I'd expect this to become the new standard at some point. |
Outside of this (woff 1.0) repo, and without me :) . See my profile, i have to do a lot of another projects, and will not be able to participate. If anyone really think, that it's better to keep project in fontello org, i'll create a repo and give all permissions. |
Fair enough. And thanks for the awesome work you do! I think I will give Emscripten a try. If this was used to port Brotli to JavaScript, I guess it should be possible to port https://code.google.com/p/font-compression-reference/source/browse/woff2/, too. I will keep you posted. |
Emscripten generates too big code. I compared, when decided to do zlib port for browser. Manual port is much more impressive. |
Thanks to @nfroidure there is an Emscripten port: https://github.com/nfroidure/ttf2woff2 |
4 mb size. |
Well, the user's browser downloading a woff2 font instead of a woff one won't care about the size of the dependency used to generate it. :) |
As i said before - it's not interesting for me to use such solutions. This project's criterias are different from business ones. |
That's certainly correct. I wasn't suggesting to add this to |
Ok. I thought such cross-compiled projects are easy to search. But it you think those link will help to someone - no problem. Also i'm ready to donate 1k$ for hight quality brotli port to JS (~ the same as we did in pako). |
What you mean per high quality? If you mean a native wrapper, you should look twice, the emscripten is just a fallback for the native wrapper. Give your $1000 to Mozilla ;). |
I mean native implementation in JS, not cross-compiled. ~ the same as we did in pako for zlib. |
In that case, i hope someone will do it, not my priority since we've got something working. Any PR doing the job will be merged though. |
Created the issue nfroidure/ttf2woff2#2 |
Please support WOFF 2.0.
...or document more prominently if in fact it is already supported.
(see ananthakumaran/webify#8 for context)
The text was updated successfully, but these errors were encountered: