diff --git a/Lib/ufoProcessor/ufoOperator.py b/Lib/ufoProcessor/ufoOperator.py index bcf0add..6e7d39a 100644 --- a/Lib/ufoProcessor/ufoOperator.py +++ b/Lib/ufoProcessor/ufoOperator.py @@ -1294,6 +1294,7 @@ def makeInstance(self, instanceDescriptor, locHorizontal, locVertical = self.splitAnisotropic(loc) if self.debug: self.logger.info(f"\t\t\tAnisotropic location for \"{instanceDescriptor.name}\"\n\t\t\t{fullDesignLocation}") + # makeOneKerning # discreteLocation ? if instanceDescriptor.kerning: @@ -1321,7 +1322,6 @@ def makeInstance(self, instanceDescriptor, # each key in the location is the libKey # each value is the calculated value libMathDict = libMathMutator.makeInstance(locHorizontal) - #print("libMathDict", locHorizontal, libMathDict) if libMathDict: for libKey, mutatedValue in libMathDict.items(): # only add the value to the lib if it is not 0. @@ -1657,6 +1657,8 @@ def makeOneKerning(self, location, pairs=None): # extract the object later if self.debug: self.logger.info(f"\t\t\t\t{len(kerningObject.keys())} kerning pairs added") + if self.roundGeometry: + kerningObject.round() if self.debug: if kerningObject is not None: self.logger.info(f"\t\t\t\tmakeOneKerning outcome: {kerningObject.items()}")