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

WOFF 2.0 #3

Closed
jonassmedegaard opened this issue Jan 27, 2014 · 19 comments
Closed

WOFF 2.0 #3

jonassmedegaard opened this issue Jan 27, 2014 · 19 comments

Comments

@jonassmedegaard
Copy link

Please support WOFF 2.0.

...or document more prominently if in fact it is already supported.

(see ananthakumaran/webify#8 for context)

@puzrin
Copy link
Member

puzrin commented Jan 27, 2014

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.

@puzrin puzrin closed this as completed Jan 27, 2014
@backflip
Copy link

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?

@devongovett
Copy link

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.

@backflip
Copy link

I see, thanks a lot.

@puzrin
Copy link
Member

puzrin commented Oct 17, 2014

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.

@backflip
Copy link

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.

@puzrin
Copy link
Member

puzrin commented Oct 17, 2014

Would you want this to be done outside of fontello?

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.

@backflip
Copy link

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.

@puzrin
Copy link
Member

puzrin commented Oct 17, 2014

Emscripten generates too big code. I compared, when decided to do zlib port for browser. Manual port is much more impressive.

@backflip
Copy link

Thanks to @nfroidure there is an Emscripten port: https://github.com/nfroidure/ttf2woff2

@puzrin
Copy link
Member

puzrin commented Jun 22, 2015

4 mb size.

@backflip
Copy link

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. :)

@puzrin
Copy link
Member

puzrin commented Jun 22, 2015

As i said before - it's not interesting for me to use such solutions. This project's criterias are different from business ones.

@backflip
Copy link

That's certainly correct. I wasn't suggesting to add this to ttf2woff but rather documenting it for anyone interested in using it directly.

@puzrin
Copy link
Member

puzrin commented Jun 22, 2015

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).

@puzrin puzrin reopened this Jun 22, 2015
@puzrin puzrin closed this as completed Jun 22, 2015
@nfroidure
Copy link

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 ;).

@puzrin
Copy link
Member

puzrin commented Jun 22, 2015

I mean native implementation in JS, not cross-compiled. ~ the same as we did in pako for zlib.

@nfroidure
Copy link

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.

@nfroidure
Copy link

Created the issue nfroidure/ttf2woff2#2

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

5 participants