diff --git a/Lib/fontTools/ttLib/tables/_g_l_y_f.py b/Lib/fontTools/ttLib/tables/_g_l_y_f.py index 670b02ca8..b664d67b9 100644 --- a/Lib/fontTools/ttLib/tables/_g_l_y_f.py +++ b/Lib/fontTools/ttLib/tables/_g_l_y_f.py @@ -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")