Skip to content

Commit

Permalink
[instancer.solver] Add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
behdad committed Aug 17, 2022
1 parent b58a818 commit 15da4d9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Lib/fontTools/varLib/instancer/solver.py
Expand Up @@ -48,11 +48,14 @@ def _solve(tent, axisLimit):

out.append((scalar - gain, loc))

# case 3a1, similar to case 1neg
if upper >= axisMax:
loc = (crossing, axisMax, axisMax)
scalar = supportScalar({'tag': axisMax}, {'tag': tent})

out.append((scalar - gain, loc))

# case 3a2, similar to case 2neg
else:
loc1 = (crossing, upper, axisMax)
scalar1 = 0
Expand Down

0 comments on commit 15da4d9

Please sign in to comment.