Skip to content

Commit

Permalink
[varLib.avarPlanner] Comment out plotting
Browse files Browse the repository at this point in the history
  • Loading branch information
behdad committed Jul 23, 2023
1 parent 805f459 commit 43df589
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Lib/fontTools/varLib/avarPlanner.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from fontTools.ttLib import newTable
from fontTools.pens.areaPen import AreaPen
from fontTools.varLib.models import piecewiseLinearMap
from fontTools.misc.cliTools import makeOutputFileName
Expand Down Expand Up @@ -110,12 +111,11 @@ def planWeightAxis(
outNormalized[bias + 1] = bias + 1
outNormalized[+1] = +1

Check warning on line 112 in Lib/fontTools/varLib/avarPlanner.py

View check run for this annotation

Codecov / codecov/patch

Lib/fontTools/varLib/avarPlanner.py#L110-L112

Added lines #L110 - L112 were not covered by tests

from matplotlib import pyplot

pyplot.plot(
sorted(outNormalized), [outNormalized[k] for k in sorted(outNormalized)]
)
pyplot.show()
#from matplotlib import pyplot
#pyplot.plot(
# sorted(outNormalized), [outNormalized[k] for k in sorted(outNormalized)]
#)
#pyplot.show()

print("Planned mapping:", out)
print("Planned normalized mapping:", outNormalized)
Expand Down Expand Up @@ -150,7 +150,7 @@ def main(args=None):

if "avar" in font:
existingMapping = font["avar"].segments["wght"]
del font["avar"]
font["avar"].segments["wght"] = {}

Check warning on line 153 in Lib/fontTools/varLib/avarPlanner.py

View check run for this annotation

Codecov / codecov/patch

Lib/fontTools/varLib/avarPlanner.py#L152-L153

Added lines #L152 - L153 were not covered by tests
else:
existingMapping = None

Check warning on line 155 in Lib/fontTools/varLib/avarPlanner.py

View check run for this annotation

Codecov / codecov/patch

Lib/fontTools/varLib/avarPlanner.py#L155

Added line #L155 was not covered by tests

Expand Down

0 comments on commit 43df589

Please sign in to comment.