Merge pull request #3031 from CourtBouillon/main
[sbix] Fix UnboundLocalError: cannot access local variable 'rawdata' where
This commit is contained in:
commit
48bf4d4eed
@ -91,7 +91,7 @@ class Glyph(object):
|
|||||||
# (needed if you just want to compile the sbix table on its own)
|
# (needed if you just want to compile the sbix table on its own)
|
||||||
self.gid = struct.pack(">H", ttFont.getGlyphID(self.glyphName))
|
self.gid = struct.pack(">H", ttFont.getGlyphID(self.glyphName))
|
||||||
if self.graphicType is None:
|
if self.graphicType is None:
|
||||||
self.rawdata = b""
|
rawdata = b""
|
||||||
else:
|
else:
|
||||||
rawdata = sstruct.pack(sbixGlyphHeaderFormat, self)
|
rawdata = sstruct.pack(sbixGlyphHeaderFormat, self)
|
||||||
if self.graphicType == "dupe":
|
if self.graphicType == "dupe":
|
||||||
|
Loading…
x
Reference in New Issue
Block a user