allow 4-byte alignment of glyph data

git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@299 4cde692c-a291-49d1-8350-778aa11640f8
This commit is contained in:
jvr 2002-09-05 19:35:56 +00:00
parent e97a27bf18
commit 223b3588e3

View File

@ -337,7 +337,7 @@ class Glyph:
self.program = ttProgram.Program()
self.program.fromBytecode(data[:numInstructions])
data = data[numInstructions:]
assert len(data) in (0, 1), "bad composite data"
assert len(data) < 4, "bad composite data"
def decompileCoordinates(self, data):
endPtsOfContours = array.array("h")