Skip to content

Commit 2b89ce0

Browse files
committed
use the same glyph object instead of getitem every time
1 parent 39333f5 commit 2b89ce0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Batch.roboFontExt/lib/variableFontGenerator/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -462,9 +462,9 @@ def makeMasterGlyphsCompatible(self):
462462
# add the glyph to the master
463463
master.newGlyph(glyphName)
464464
glyph = master[glyphName]
465-
result.extractGlyph(master[glyphName], onlyGeometry=True)
465+
result.extractGlyph(glyph, onlyGeometry=True)
466466
glyph.unicodes = list(result.unicodes)
467-
glyphs.append(master[glyphName])
467+
glyphs.append(glyph)
468468
# optimize glyph contour data from all masters
469469
self.makeGlyphOutlinesCompatible(glyphs)
470470
if getDefault("Batch.Debug", False):

0 commit comments

Comments
 (0)