Fix glyph compilation code

This commit is contained in:
Guillaume Ayoub 2023-03-10 11:34:16 +01:00
parent 1a202ab1be
commit b2c75bede4

View File

@ -91,7 +91,7 @@ class Glyph(object):
# (needed if you just want to compile the sbix table on its own)
self.gid = struct.pack(">H", ttFont.getGlyphID(self.glyphName))
if self.graphicType is None:
self.rawdata = b""
rawdata = b""
else:
rawdata = sstruct.pack(sbixGlyphHeaderFormat, self)
if self.graphicType == "dupe":