Ce document en Français
Then, unzip/decompress the file
woff-code-latest.zip with your default
unzipping/decompression software (mine is Ark version 2.19) in, say,
In your package manager (mine is Muon Package Manager version 2.2.0),
make sure you have installed
zlib1g-dev package and
possibly a few other dependent packages (like
packages); if not, then download and install them.
~/Documents/woff-code-latest$ ls Makefile sfnt2woff.c woff-2009-10-03.html woff2sfnt.c woff.c woff.h woff-private.h
You should see those 7 files.
Then in your command-line terminal (mine is Konsole), do:
~/Documents/woff-code-latest$ make cc -c -o sfnt2woff.o sfnt2woff.c cc -c -o woff.o woff.c cc -o sfnt2woff sfnt2woff.o woff.o -lz cc -c -o woff2sfnt.o woff2sfnt.c cc -o woff2sfnt woff2sfnt.o woff.o -lz
~/Documents/woff-code-latest$ ls -al
should be listed along with execution rights for group and user.
Then move or copy the source
font (the .ttf file you want to convert into an .woff file) into
and then do:
foo.woff should be created
and its filesize should be (moderately or considerably) smaller than
The "./" prefixing the executable is important unless you have modified/added the /woff-code-latest directory to your $PATH.
More info: http://askubuntu.com/search?q=modify+$PATH+add+directory
Many thanks to Johnathan Kew, Chris Lilley and Kazuaki Takemura for their assistance.