Skip to content

Commit 7db5622

Browse files
committed
copy unicodes for non existing glyphs
1 parent 823abbf commit 7db5622

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Batch.roboFontExt/lib/variableFontGenerator/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -424,6 +424,7 @@ def makeMasterGlyphsCompatible(self):
424424
defaultMaster.newGlyph(glyphName)
425425
glyph = defaultMaster[glyphName]
426426
result.extractGlyph(glyph, onlyGeometry=True)
427+
glyph.unicodes = list(result.unicodes)
427428

428429
glyphs = []
429430
# fill all masters with missing glyphs
@@ -461,6 +462,7 @@ def makeMasterGlyphsCompatible(self):
461462
# add the glyph to the master
462463
master.newGlyph(glyphName)
463464
result.extractGlyph(master[glyphName], onlyGeometry=True)
465+
glyph.unicodes = list(result.unicodes)
464466
glyphs.append(master[glyphName])
465467
# optimize glyph contour data from all masters
466468
self.makeGlyphOutlinesCompatible(glyphs)

0 commit comments

Comments
 (0)