increase the width of the length and offset fields by one, to accommodate sizes and offsets in the 10s of megabytes.

This commit is contained in:
justvanrossum 2018-02-13 18:47:18 +01:00 committed by Behdad Esfahbod
parent 5eebad29df
commit ce639f0064

View File

@ -223,9 +223,9 @@ def ttList(input, output, options):
reader = ttf.reader reader = ttf.reader
tags = sorted(reader.keys()) tags = sorted(reader.keys())
print('Listing table info for "%s":' % input) print('Listing table info for "%s":' % input)
format = " %4s %10s %7s %7s" format = " %4s %10s %8s %8s"
print(format % ("tag ", " checksum", " length", " offset")) print(format % ("tag ", " checksum", " length", " offset"))
print(format % ("----", "----------", "-------", "-------")) print(format % ("----", "----------", "--------", "--------"))
for tag in tags: for tag in tags:
entry = reader.tables[tag] entry = reader.tables[tag]
if ttf.flavor == "woff2": if ttf.flavor == "woff2":