diff options
author | James Godfrey-Kittle <jamesgk@google.com> | 2015-04-27 17:26:38 -0700 |
---|---|---|
committer | jamesgk <jamesgk19@gmail.com> | 2015-04-27 17:26:38 -0700 |
commit | 727e3852355b8c00386d81138b41416b27c84bd1 (patch) | |
tree | 8fe8b5b9ea0c79d396bae71d6bae5f0f48a4061d /scripts/lib | |
parent | 0e6d6e0988c730ef45ffdc2c756285dad2568e68 (diff) |
More descriptive variable names in kerning.py.
Diffstat (limited to 'scripts/lib')
-rw-r--r-- | scripts/lib/fontbuild/kerning.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/scripts/lib/fontbuild/kerning.py b/scripts/lib/fontbuild/kerning.py index 01aac2a..302c330 100644 --- a/scripts/lib/fontbuild/kerning.py +++ b/scripts/lib/fontbuild/kerning.py @@ -43,22 +43,22 @@ class KernFeatureWriter(AbstractFeatureWriter): for rightName, rightContents in self.rightClasses: rightKey = rightContents[0] pair = leftKey, rightKey - val = self.kerning[pair] - if val is None: + kerningVal = self.kerning[pair] + if kerningVal is None: continue - classPairKerning[leftName, rightName] = val + classPairKerning[leftName, rightName] = kerningVal self.kerning.remove(pair) # collect rules with left class and right glyph - for pair, val in self.kerning.getLeft(leftKey): - leftClassKerning[leftName, pair[1]] = val + for pair, kerningVal in self.kerning.getLeft(leftKey): + leftClassKerning[leftName, pair[1]] = kerningVal self.kerning.remove(pair) # collect rules with left glyph and right class for rightName, rightContents in self.rightClasses: rightKey = rightContents[0] - for pair, val in self.kerning.getRight(rightKey): - rightClassKerning[pair[0], rightName] = val + for pair, kerningVal in self.kerning.getRight(rightKey): + rightClassKerning[pair[0], rightName] = kerningVal self.kerning.remove(pair) # write the feature |