Initial implementation of woff2. #1

OpenshurcooL opened this change 5 days ago
shurcooL commented 5 days ago

Add initial parser implementation.

This is an initial implementation of a parser for the WOFF2 font packaging format.

It is incomplete; further work will come later. The scope for this milestone was to be able to parse .woff2 files for the needs of the package.

At this time, the API is very low level and maps directly to the binary format of the file, as described in its specification. This API is in early development and is expected to change as further progress is made.

It successfully parses some Go font family .woff2 files that were generated using the encoder from the Go font source .ttf files located at

Add basic test coverage.


For convenience, a godoc view of this change can be seen here.