Support ./ttx'ing woff files
Doesn't dump woff metadata/private sections yet.
This commit is contained in:
parent
67eded5efa
commit
8c35239853
@ -266,6 +266,8 @@ def guessFileType(fileName):
|
|||||||
return "TTC"
|
return "TTC"
|
||||||
elif head in ("\0\1\0\0", "true"):
|
elif head in ("\0\1\0\0", "true"):
|
||||||
return "TTF"
|
return "TTF"
|
||||||
|
elif head in ("wOFF", "true"):
|
||||||
|
return "WOFF"
|
||||||
elif head.lower() == "<?xm":
|
elif head.lower() == "<?xm":
|
||||||
if opentypeheaderRE.search(header):
|
if opentypeheaderRE.search(header):
|
||||||
return "OTX"
|
return "OTX"
|
||||||
@ -288,7 +290,7 @@ def parseOptions(args):
|
|||||||
|
|
||||||
for input in files:
|
for input in files:
|
||||||
tp = guessFileType(input)
|
tp = guessFileType(input)
|
||||||
if tp in ("OTF", "TTF", "TTC"):
|
if tp in ("OTF", "TTF", "TTC", "WOFF"):
|
||||||
extension = ".ttx"
|
extension = ".ttx"
|
||||||
if options.listTables:
|
if options.listTables:
|
||||||
action = ttList
|
action = ttList
|
||||||
|
Loading…
x
Reference in New Issue
Block a user