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 support #19

Closed
lerouxb opened this issue Mar 4, 2014 · 4 comments
Closed

WOFF support #19

lerouxb opened this issue Mar 4, 2014 · 4 comments

Comments

@lerouxb
Copy link

lerouxb commented Mar 4, 2014

I was trying this library with some Google Fonts and because it only serves your browser the CSS for the best/latest format your browser can support, it is a bit of a pain to get to anything other than the WOFF file's URL.

It might be more effort to implement than it is worth, but support for it would be nice.

@Pomax
Copy link
Owner

Pomax commented Mar 4, 2014

it's not so much effort as "a problem", WOFF files are compresed with the zlib compress2() function, so it's not just a matter of parsing more data, I'd actually need a JS implementation to unpack the data in-memory. I'm currently working on something that might become a replacement for Font.js though, so we'll see if I can add wOFF support there (https://github.com/pomax/CFF-glyphlet-fonts/)

@lerouxb
Copy link
Author

lerouxb commented Mar 4, 2014

Aah thanks. I'll check that out too. I'm trying to make one of those font
or letter visualisers where it draws lines over the letter to show the
baseline, x-height, ascenders, descenders, leading, etc.

On Tuesday, March 4, 2014, Mike Kamermans notifications@github.com wrote:

it's not so much effort as "a problem", WOFF files are compresed with the
zlib compress2() function, so it's not just a matter of parsing more data,
I'd actually need a JS implementation to unpack the data in-memory. I'm
currently working on something that might become a replacement for Font.js
though, so we'll see if I can add wOFF support there (
https://github.com/pomax/CFF-glyphlet-fonts/)

Reply to this email directly or view it on GitHubhttps://github.com//issues/19#issuecomment-36641471
.

@Pomax
Copy link
Owner

Pomax commented Mar 4, 2014

you might also want to have a look at opentype.js, then, over at http://nodebox.github.io/opentype.js/

@Pomax
Copy link
Owner

Pomax commented Nov 15, 2019

obsolete with the 2019 rewrite (which adds woff/woff2)

@Pomax Pomax closed this as completed Nov 15, 2019
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