[varLib.avarPlanner] Turn a couple of log.info messages into debug
This commit is contained in:
parent
0c27f22384
commit
aadfc9390e
@ -382,7 +382,7 @@ def planAxis(
|
|||||||
valueMeasurements = axisMeasurements.copy()
|
valueMeasurements = axisMeasurements.copy()
|
||||||
for sample in range(1, samples + 1):
|
for sample in range(1, samples + 1):
|
||||||
value = rangeMin + (rangeMax - rangeMin) * sample / (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})
|
glyphset = glyphSetFunc(location={axisTag: value})
|
||||||
designValue = piecewiseLinearMap(value, pins)
|
designValue = piecewiseLinearMap(value, pins)
|
||||||
valueMeasurements[designValue] = measureFunc(glyphset, glyphs)
|
valueMeasurements[designValue] = measureFunc(glyphset, glyphs)
|
||||||
@ -400,7 +400,7 @@ def planAxis(
|
|||||||
t, valueMeasurements[targetMin], valueMeasurements[targetMax]
|
t, valueMeasurements[targetMin], valueMeasurements[targetMax]
|
||||||
)
|
)
|
||||||
targetValue = piecewiseLinearMap(targetMeasurement, measurementValue)
|
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
|
out[value] = targetValue
|
||||||
outNormalized[
|
outNormalized[
|
||||||
normalizedMin + t * (normalizedMax - normalizedMin)
|
normalizedMin + t * (normalizedMax - normalizedMin)
|
||||||
@ -835,6 +835,7 @@ def main(args=None):
|
|||||||
|
|
||||||
avar = font["avar"]
|
avar = font["avar"]
|
||||||
|
|
||||||
|
log.info("Designspace snippet:")
|
||||||
if wdthAxis:
|
if wdthAxis:
|
||||||
avar.segments["wdth"] = widthMappingNormalized
|
avar.segments["wdth"] = widthMappingNormalized
|
||||||
designspaceSnippet = makeDesignspaceSnippet(
|
designspaceSnippet = makeDesignspaceSnippet(
|
||||||
@ -843,7 +844,6 @@ def main(args=None):
|
|||||||
(wdthAxis.minValue, wdthAxis.defaultValue, wdthAxis.maxValue),
|
(wdthAxis.minValue, wdthAxis.defaultValue, wdthAxis.maxValue),
|
||||||
widthMapping,
|
widthMapping,
|
||||||
)
|
)
|
||||||
log.info("Width axis designspace snippet:")
|
|
||||||
print(designspaceSnippet)
|
print(designspaceSnippet)
|
||||||
|
|
||||||
if wghtAxis:
|
if wghtAxis:
|
||||||
@ -854,7 +854,6 @@ def main(args=None):
|
|||||||
(wghtAxis.minValue, wghtAxis.defaultValue, wghtAxis.maxValue),
|
(wghtAxis.minValue, wghtAxis.defaultValue, wghtAxis.maxValue),
|
||||||
weightMapping,
|
weightMapping,
|
||||||
)
|
)
|
||||||
log.info("Weight axis designspace snippet:")
|
|
||||||
print(designspaceSnippet)
|
print(designspaceSnippet)
|
||||||
|
|
||||||
if slntAxis:
|
if slntAxis:
|
||||||
@ -865,7 +864,6 @@ def main(args=None):
|
|||||||
(slntAxis.minValue, slntAxis.defaultValue, slntAxis.maxValue),
|
(slntAxis.minValue, slntAxis.defaultValue, slntAxis.maxValue),
|
||||||
slantMapping,
|
slantMapping,
|
||||||
)
|
)
|
||||||
log.info("Slant axis designspace snippet:")
|
|
||||||
print(designspaceSnippet)
|
print(designspaceSnippet)
|
||||||
|
|
||||||
if options.output_file is None:
|
if options.output_file is None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user