1 This is a README for the font compression reference code. There are several
2 compression related modules in this repository.
4 brotli/ contains reference code for the Brotli byte-level compression
5 algorithm. Note that it is licensed under an Apache 2 license.
7 src/ contains the C++ code for compressing and decompressing fonts.
11 This document documents how to run the compression reference code. At this
12 writing, the code, while it is intended to produce a bytestream that can be
13 reconstructed into a working font, the reference decompression code is not
14 done, and the exact format of that bytestream is subject to change.
18 On a standard Unix-style environment:
21 git clone https://github.com/google/woff2.git
31 woff2_compress myfont.ttf
32 woff2_decompress myfont.woff2
37 http://www.w3.org/TR/WOFF2/
38 http://www.w3.org/Submission/MTX/
40 Also please refer to documents (currently Google Docs):
42 WOFF Ultra Condensed file format: proposals and discussion of wire format
43 issues (PDF is in docs/ directory)
45 WIFF Ultra Condensed: more discussion of results and compression techniques.
46 This tool was used to prepare the data in that document.