nabla icon indicating copy to clipboard operation
nabla copied to clipboard

`.woff2` version

Open o-t-w opened this issue 2 years ago • 5 comments

Is there a .woff2 version you could include in the download? I know there are tools I could use to convert it but some of those are not compatible with variable color fonts afaik.

o-t-w avatar Nov 29 '22 16:11 o-t-w

some of those are not compatible with variable color fonts afaik

I don't think so. What do you mean by that? woff2 compressors (e.g. the c++ one from google/woff2 repo, or the fonttools ttLib.woff2 compress script in the python FontTools library) do not care whether the font contains variation tables or has COLR or SVG or any other color tables.

anthrotype avatar Nov 29 '22 16:11 anthrotype

Last time I checked the webfont generator at FontSquirrel messes them up.

o-t-w avatar Nov 29 '22 18:11 o-t-w

maybe they are dropping tables they don't know about, I have no idea how that works, but the mere act of woff2-compressing a font does not involve dealing with variable or color tables at all. I suggest you try using woff2_compress command line tool directly https://github.com/google/woff2

anthrotype avatar Nov 29 '22 18:11 anthrotype

I wonder why the download from Google Fonts doesn't include .woff2.

justvanrossum avatar Nov 30 '22 07:11 justvanrossum

I just checked, and FontSquirrel indeed drops the COLR/CPAL tables.

justvanrossum avatar Nov 30 '22 07:11 justvanrossum