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

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

Mergeddmitshur opened this change 6 years ago
Patch Set 2: update test for new API

The API had changed earlier, the test wasn't updated for it. This
change fixes that, allowing tests to pass.
dmitshur committed 6 years ago commit 4a92ab98087644afe3da1b7a17e2a475eb1761ae
Collapse all
Commit Message
FileFile
@@ -1,10 +1,10 @@
11
Parent:     e9561ae (Initial commit.)
22
Author:     Dmitri Shuralyov <dmitri@shuralyov.com>
33
AuthorDate: Sun Feb 11 15:10:28 2018 -0500
44
Commit:     Dmitri Shuralyov <dmitri@shuralyov.com>
5
CommitDate: Sun Feb 11 15:10:28 2018 -0500
5
CommitDate: Sun Feb 11 15:19:24 2018 -0500
66

77
Add initial parser implementation.
88

99
This is an initial implementation of a parser for the WOFF2 font
1010
packaging format.
parse_test.go
FileFile
@@ -64,11 +64,11 @@ func Dump(f woff2.File) {
6464
	dumpHeader(f.Header)
6565
	fmt.Println()
6666
	dumpTableDirectory(f.TableDirectory)
6767
	fmt.Println()
6868
	fmt.Println("CollectionDirectory:", f.CollectionDirectory)
69
	fmt.Println("CompressedFontData:", len(f.CompressedFontData.Data), "bytes (uncompressed size)")
69
	fmt.Println("CompressedFontData:", len(f.FontData), "bytes (uncompressed size)")
7070
	fmt.Println("ExtendedMetadata:", f.ExtendedMetadata)
7171
	fmt.Println("PrivateData:", f.PrivateData)
7272
}
7373

7474
func dumpHeader(hdr woff2.Header) {