Skip to content

Commit

Permalink
[varLib.avarPlanner] Turn a couple of log.info messages into debug
Browse files Browse the repository at this point in the history
  • Loading branch information
behdad committed Jul 24, 2023
1 parent 0c27f22 commit e4a2861
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Lib/fontTools/varLib/avarPlanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ def planAxis(
valueMeasurements = axisMeasurements.copy()

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

View check run for this annotation

Codecov / codecov/patch

Lib/fontTools/varLib/avarPlanner.py#L380-L382

Added lines #L380 - L382 were not covered by tests
for sample in range(1, samples + 1):
value = rangeMin + (rangeMax - rangeMin) * sample / (samples + 1)
log.info("Sampling value %g.", value)
log.debug("Sampling value %g.", value)
glyphset = glyphSetFunc(location={axisTag: value})
designValue = piecewiseLinearMap(value, pins)
valueMeasurements[designValue] = measureFunc(glyphset, glyphs)
Expand All @@ -400,7 +400,7 @@ def planAxis(
t, valueMeasurements[targetMin], valueMeasurements[targetMax]
)
targetValue = piecewiseLinearMap(targetMeasurement, measurementValue)
log.info("Planned mapping value %g to %g." % (value, targetValue))
log.debug("Planned mapping value %g to %g." % (value, targetValue))
out[value] = targetValue
outNormalized[

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

View check run for this annotation

Codecov / codecov/patch

Lib/fontTools/varLib/avarPlanner.py#L402-L405

Added lines #L402 - L405 were not covered by tests
normalizedMin + t * (normalizedMax - normalizedMin)
Expand Down

0 comments on commit e4a2861

Please sign in to comment.