Closed gabrielelim0 closed 12 months ago
Im getting a similair issue, Im on Macos, using the Iterm terminal.
I cloned the repo and ran make clean all
git clone --recursive https://github.com/google/woff2.git
cd woff2
make clean all
Then i placed my font in the root directory of the folder
Command i executed in the terminal, in the root directory:
./woff2_compress ROsanswebtextbold.woff
output:
Processing ROsanswebtextbold.woff => ROsanswebtextbold.woff2
Parsing of the input font failed.
Compression failed.
I assume the input to woff2_compress
needs to be a valid OpenType/TrueType font file, not an already-compressed WOFF file.
It turns out this is indeed the issue, lucky the client supplied me with .ttf files aswell and i was able to convert them as you would expect by using
./woff2_compress ROsanswebtextbold.ttf
Incase you dont have the .ttf files, i tried running woff2_decompress on my previous .woff files and that didnt work, seems it really has to be woff2 for the decompress to work. (Makes sense i suppose)
Would be great if this project supported uncompressing .woff files, or even better supported having .woff files as input to convert to .woff2
But for now since i have the .ttf files its no longer an issue for me.
thank you.
Processing fonts/Pretendard-Regular.woff => fonts/Pretendard-Regular.woff2 Parsing of the input font failed. Compression failed.
Processing fonts/Pretendard-Regular.woff => fonts/Pretendard-Regular.woff2 WOFF2Header Invalid signature: 774f4646