From b2c75bede472c6ed626f6cc9998fd7066248d2b1 Mon Sep 17 00:00:00 2001 From: Guillaume Ayoub Date: Fri, 10 Mar 2023 11:34:16 +0100 Subject: [PATCH] Fix glyph compilation code --- Lib/fontTools/ttLib/tables/sbixGlyph.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/fontTools/ttLib/tables/sbixGlyph.py b/Lib/fontTools/ttLib/tables/sbixGlyph.py index d1609cc68..b14b6bdf5 100644 --- a/Lib/fontTools/ttLib/tables/sbixGlyph.py +++ b/Lib/fontTools/ttLib/tables/sbixGlyph.py @@ -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":