Skip to content

Commit

Permalink
[instancer.solver] Add assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
behdad committed Aug 17, 2022
1 parent 51ead4a commit 75b30b1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Lib/fontTools/varLib/instancer/solver.py
Expand Up @@ -174,6 +174,7 @@ def _solve(tent, axisLimit, negative=False):
if not negative and axisDef + (axisMax - axisDef) * MAX_F2DOT14 < upper:
# we clamp +2.0 to the max F2Dot14 (~1.99994) for convenience
upper = axisDef + (axisMax - axisDef) * MAX_F2DOT14
assert peak < upper

# Special-case if peak is at axisMax.
if axisMax == peak:
Expand Down

0 comments on commit 75b30b1

Please sign in to comment.