ttx: pad tags with space if length is less than 4

so that you don't need to do `-t "CFF "` anymore.

Fixes https://github.com/behdad/fonttools/issues/265
This commit is contained in:
Cosimo Lupo 2015-12-08 10:11:26 +00:00
parent db57418b55
commit 79c2b8cbc1

View File

@ -155,6 +155,8 @@ class Options(object):
elif option == "-l":
self.listTables = True
elif option == "-t":
# pad with space if table tag length is less than 4
value += " " * (4 - len(value))
self.onlyTables.append(value)
elif option == "-x":
self.skipTables.append(value)