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:
parent
e97a27bf18
commit
223b3588e3
@ -337,7 +337,7 @@ class Glyph:
|
|||||||
self.program = ttProgram.Program()
|
self.program = ttProgram.Program()
|
||||||
self.program.fromBytecode(data[:numInstructions])
|
self.program.fromBytecode(data[:numInstructions])
|
||||||
data = 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):
|
def decompileCoordinates(self, data):
|
||||||
endPtsOfContours = array.array("h")
|
endPtsOfContours = array.array("h")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user