Code Monkey home page Code Monkey logo

Comments (4)

jfkthame avatar jfkthame commented on June 3, 2024 2

I assume the input to woff2_compress needs to be a valid OpenType/TrueType font file, not an already-compressed WOFF file.

from woff2.

WybeBosch avatar WybeBosch commented on June 3, 2024

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.

from woff2.

WybeBosch avatar WybeBosch commented on June 3, 2024

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.

from woff2.

gabrielelim0 avatar gabrielelim0 commented on June 3, 2024

thank you.

from woff2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.