Initial implementation of woff2. #1

Mergeddmitshur opened this change 1 year ago
dmitshur commented 1 year 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.

dmitshur approved this change 1 year ago

There have been some out-of-band review comments that I've addressed. This will do for the initial version.


dmitshur merged commit 957792cbbdabb084d484a7dcfd1e5b1a739a0ced into master 1 year ago