Support ./ttx'ing woff files

Doesn't dump woff metadata/private sections yet.
This commit is contained in:
Behdad Esfahbod 2013-11-26 12:58:28 -05:00
parent 67eded5efa
commit 8c35239853

View File

@ -266,6 +266,8 @@ def guessFileType(fileName):
return "TTC"
elif head in ("\0\1\0\0", "true"):
return "TTF"
elif head in ("wOFF", "true"):
return "WOFF"
elif head.lower() == "<?xm":
if opentypeheaderRE.search(header):
return "OTX"
@ -288,7 +290,7 @@ def parseOptions(args):
for input in files:
tp = guessFileType(input)
if tp in ("OTF", "TTF", "TTC"):
if tp in ("OTF", "TTF", "TTC", "WOFF"):
extension = ".ttx"
if options.listTables:
action = ttList