aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatarLarge Libravatar Bram Stein <steinadobecom>2014-11-09 12:49:22 +0100
committerLibravatarLarge Libravatar Bram Stein <steinadobecom>2014-11-09 12:49:22 +0100
commit56b332f438c771e188be13e8b98ebc5fded620cf (patch)
tree13f97c6a0056c49d4049e83d053d4870d58ed3b9
parent03db9c0ad729ad88ea647518729ec14209763a1e (diff)
downloadsfnt2woff-zopfli-56b332f438c771e188be13e8b98ebc5fded620cf.tar.gz
sfnt2woff-zopfli-56b332f438c771e188be13e8b98ebc5fded620cf.tar.bz2
sfnt2woff-zopfli-56b332f438c771e188be13e8b98ebc5fded620cf.tar.lz
sfnt2woff-zopfli-56b332f438c771e188be13e8b98ebc5fded620cf.zip

Add README.

-rw-r--r--README.md41
1 files changed, 41 insertions, 0 deletions
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..d270a22
--- /dev/null
+++ b/README.md
@@ -0,0 +1,41 @@
+# Create WOFF files with Zopfli compression
+
+This is a modified version of the [sfnt2woff utility](https://people.mozilla.org/~jkew/woff/) that uses Zopfli as a compression algorithm instead of zlib. This results in compression gains of, on average, 5-8% compared to regular WOFF files. Zopfli generates compressed output that is compatible with regular zlib compression so the resulting WOFF files can be used everywhere.
+
+##Usage
+
+To create a WOFF file from an OpenType files:
+
+ > sfnt2woff [-v <maj>.<min>] [-m <metadata.xml>] [-p <private.dat>] <otffile>
+
+Options:
+
+ -v <maj>.<min> set font version number (major and minor, both integers)
+ -m <metadata.xml> include metadata from <metadata.xml> (not validated)
+ -p <private.dat> include private data block
+
+To decompress a WOFF file and write the OpenType file to stdout:
+
+ > woff2sfnt [-v | -m | -p] <woff>
+
+Options:
+
+ -v write font version to stdout
+ -m write WOFF metadata block to stdout
+ -p write private data block to stdout
+
+## Compiling
+
+To compile the utilities, run make:
+
+ > make
+
+This will compile two utilities `sfnt2woff` to convert OpenType files to WOFF and `woff2sfnt` to convert WOFF files back to OpenType files. If the build was succesful you can copy the resulting executables to `/usr/local/bin` to make them available on your system.
+
+## Licensing
+
+The WOFF portion of the code is taken from [sfnt2woff](https://people.mozilla.org/~jkew/woff/), which is licensed under the MPL/GPL/LGPL. The [Zopfli implementation](https://code.google.com/p/zopfli/) is licensed under the Apache License. My modifications to `woff.c` are also licensed under the MPL/GPL/LGPL.
+
+## Alternative
+
+You can also use the [ttf2woff tool](http://wizard.ae.krakow.pl/~jb/ttf2woff/), which also converts OpenType files to WOFF using Zopfli, but is exclusively licensed under the GPL.