Build the ttf2woff2 binary from source
mainIf you need to build the native C++ wrapper yourself, follow these steps. Note that the setup instructions are specific to Ubuntu/Linux and may vary on other operating systems.
- Install dependencies: Ensure
makeandg++are installed viaapt-get. - Install npm packages: Run
npm i. - Configure: Run
npm run configure. - Compile: Run
npm run make.
If the C++ compilation fails, the package is designed to fall back to an Emscripten build.
## Setup (Ubuntu/Linux)
apt-get install make g++
## Actual build
npm i
npm run configure
npm run make