Skip to content

Commit 48fa1cc

Browse files
authored
Merge pull request #52 from rohernandezz/master
'twas throwing up a variable undefined error
2 parents 7db5622 + 2b89ce0 commit 48fa1cc

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Batch.roboFontExt/lib/variableFontGenerator/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -461,9 +461,10 @@ def makeMasterGlyphsCompatible(self):
461461
self.generateReport.write("Adding missing glyph '%s' in master '%s %s (%s)'" % (glyphName, master.font.info.familyName, master.font.info.styleName, master.name))
462462
# add the glyph to the master
463463
master.newGlyph(glyphName)
464-
result.extractGlyph(master[glyphName], onlyGeometry=True)
464+
glyph = master[glyphName]
465+
result.extractGlyph(glyph, onlyGeometry=True)
465466
glyph.unicodes = list(result.unicodes)
466-
glyphs.append(master[glyphName])
467+
glyphs.append(glyph)
467468
# optimize glyph contour data from all masters
468469
self.makeGlyphOutlinesCompatible(glyphs)
469470
if getDefault("Batch.Debug", False):

0 commit comments

Comments
 (0)