Skip to content

Commit 54d5f11

Browse files
committed
type must be font not master....
all kerning was added to the last master from a previous loop, not good...
1 parent d3cb281 commit 54d5f11

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

Batch.roboFontExt/lib/variableFontGenerator/__init__.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -590,16 +590,17 @@ def makeMasterKerningCompatible(self):
590590
if kerningInstance is None:
591591
location = self.locations[sourceDescriptor.name]
592592
kerningInstance = kerningMutator.makeInstance(Location(location))
593-
master.kerning[pair] = kerningInstance[pair]
593+
kerningCache[sourceDescriptor.name] = kerningInstance
594+
font.kerning[pair] = kerningInstance[pair]
594595
# check pairs on group kerning
595596
side1, side2 = pair
596-
if side1.startswith(side1Prefix) and side1 not in master.groups:
597+
if side1.startswith(side1Prefix) and side1 not in font.groups:
597598
# add a group
598-
master.groups[side1] = allGroups[side1]
599+
font.groups[side1] = allGroups[side1]
599600
missingGroups.append(side1)
600-
if side2.startswith(side2Prefix) and side2 not in master.groups:
601+
if side2.startswith(side2Prefix) and side2 not in font.groups:
601602
# add a group
602-
master.groups[side2] = allGroups[side2]
603+
font.groups[side2] = allGroups[side2]
603604
missingGroups.append(side2)
604605
if missingPairs:
605606
self.generateReport.write("Adding missing kerning pairs in %s %s: %s" % (font.info.familyName, font.info.styleName, ", ".join(["(%s, %s)" % (s1, s2) for s1, s2 in missingPairs])))

0 commit comments

Comments
 (0)