dmitri.shuralyov.com/font/woff2

initial implementation of woff2 dmitri.shuralyov.com/font/woff2#1

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

Write Preview Markdown
dmitshur reviewed +2 6 years ago

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

LGTM.

dmitshur merged commit 957792cbbdabb084d484a7dcfd1e5b1a739a0ced into main 6 years ago
Write Preview Markdown