Skip to content

Commit

Permalink
[instancer] Fix code move
Browse files Browse the repository at this point in the history
  • Loading branch information
behdad committed Aug 17, 2022
1 parent bb5f9e9 commit f427e11
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 0 additions & 4 deletions Lib/fontTools/varLib/instancer/__init__.py
Expand Up @@ -220,10 +220,6 @@ def changeTupleVariationsAxisLimits(variations, axisLimits):
return variations


def _negate(*values):
yield from (-1 * v for v in values)


def changeTupleVariationAxisLimit(var, axisTag, axisLimit):
assert isinstance(axisLimit, NormalizedAxisTent)

Expand Down
3 changes: 3 additions & 0 deletions Lib/fontTools/varLib/instancer/solver.py
@@ -1,5 +1,8 @@
from fontTools.varLib.models import supportScalar

def _negate(*values):
yield from (-1 * v for v in values)

def _solvePinned(tent, axisLimit):

axisMin, axisDef, axisMax = axisLimit
Expand Down

0 comments on commit f427e11

Please sign in to comment.