dmitri.shuralyov.com/font/woff2/...

Initial implementation of woff2. #1

MergedshurcooL opened this change 6 months ago
shurcooL commented 6 months 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 github.com/ConradIrwin/font/sfnt 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 https://github.com/google/woff2 encoder from the Go font source .ttf files located at https://go.googlesource.com/image/+/master/font/gofont/ttfs/.

Add basic test coverage.

Helps https://github.com/ConradIrwin/font/issues/1.

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

shurcooL approved this change 5 months ago

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

LGTM.

shurcooL merged commit 957792cbbdabb084d484a7dcfd1e5b1a739a0ced into master 5 months ago