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

Add woff2 files #10

Open
Findus23 opened this issue May 25, 2021 · 5 comments
Open

Add woff2 files #10

Findus23 opened this issue May 25, 2021 · 5 comments

Comments

@Findus23
Copy link

I assume a lot of people use these fonts on websites (by the fact that a default CSS is provided).

Most modern browsers support the woff2 format (https://caniuse.com/woff2) and it can compress the files by a lot (e.g. 27kb instead of 77kb for Bookinsanity.otf) losslessly, making websites load faster.

This could be done with something like

for file in **/*.otf
do
    woff2_compress $file
done

after installing e.g. woff2 on Debian (see https://github.com/google/woff2).

If you would like, I could create a Pull Request

@jonathonf
Copy link
Owner

Most fonts are already available as woff2 elsewhere, e.g. https://github.com/naturalcrit/homebrewery/tree/master/client/homebrew/phbStyle/fonts/v3 . Is there still value in including them here?

@Findus23
Copy link
Author

I'm also converting the fonts to woff2 in my project, but I think it would be nice if they would be provided here too so beginners wouldn't accidentally ship too large files to their users.
But it's not that important and optional.

@prantlf
Copy link

prantlf commented Feb 25, 2023

@jonathonf, yes, indeed it is, because your link is dead now :-)

@Findus23
Copy link
Author

@prantlf In case you need the woff2-files and can't run woff2_compress yourself, you should find them here in my project:
https://github.com/Findus23/cr-search/tree/master/web/fonts

@prantlf
Copy link

prantlf commented Feb 26, 2023

Oh, thanks for the info, @Findus23! I see that you also wanted the better compressed woff2 fonts files. I tried to generate them automatically in the meanwhile and put them to the NPM module solbera-dnd-fonts.

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

3 participants