jonathonf / solbera-dnd-fonts

Solbera's DND5e fonts
https://jonathonf.github.io/solbera-dnd-fonts/
Creative Commons Attribution Share Alike 4.0 International
239 stars 42 forks source link

Add woff2 files #10

Open Findus23 opened 3 years ago

Findus23 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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 commented 1 year ago

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

Findus23 commented 1 year ago

@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 commented 1 year ago

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.