Remove outdated or unused files
This commit is contained in:
@@ -6,8 +6,6 @@ algorithm. Note that it is licensed under an Apache 2 license.
|
|||||||
|
|
||||||
woff2/ contains the C++ code for compressing and decompressing fonts.
|
woff2/ contains the C++ code for compressing and decompressing fonts.
|
||||||
|
|
||||||
docs/ contains documents describing the proposed compression format.
|
|
||||||
|
|
||||||
# Build & Run
|
# Build & Run
|
||||||
|
|
||||||
This document documents how to run the compression reference code. At this
|
This document documents how to run the compression reference code. At this
|
||||||
|
|||||||
Binary file not shown.
-5500
File diff suppressed because it is too large
Load Diff
@@ -1,38 +0,0 @@
|
|||||||
# Copyright (c) 2012 Google Inc. All rights reserved.
|
|
||||||
# Use of this source code is governed by a BSD-style license that can be
|
|
||||||
# found in the LICENSE file.
|
|
||||||
|
|
||||||
# This is a simple utility for dumping out the header of a compressed file, and
|
|
||||||
# is suitable for doing spot checks of compressed. files. However, this only
|
|
||||||
# implements the "long" form of the table directory.
|
|
||||||
|
|
||||||
import struct
|
|
||||||
import sys
|
|
||||||
|
|
||||||
def dump_woff2_header(header):
|
|
||||||
header_values = struct.unpack('>IIIHHIHHIIIII', header[:44])
|
|
||||||
for i, key in enumerate([
|
|
||||||
'signature',
|
|
||||||
'flavor',
|
|
||||||
'length',
|
|
||||||
'numTables',
|
|
||||||
'reserved',
|
|
||||||
'totalSfntSize',
|
|
||||||
'majorVersion',
|
|
||||||
'minorVersion',
|
|
||||||
'metaOffset',
|
|
||||||
'metaOrigLength',
|
|
||||||
'privOffset',
|
|
||||||
'privLength']):
|
|
||||||
print key, header_values[i]
|
|
||||||
numTables = header_values[3]
|
|
||||||
for i in range(numTables):
|
|
||||||
entry = struct.unpack('>IIIII', header[44+20*i:44+20*(i+1)])
|
|
||||||
print '%08x %d %d %d %d' % entry
|
|
||||||
|
|
||||||
def main():
|
|
||||||
header = file(sys.argv[1]).read()
|
|
||||||
dump_woff2_header(header)
|
|
||||||
|
|
||||||
main()
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user