[instancer] Fix output filename decision-making
All limits are tuples now when not None. The old logic was broken and for the following command: $ fonttools varLib.instancer AdobeVFPrototype.otf CNTR=50:80 wght=900 it was saving the output with the name suffix `-instance`, whereas it's clearly a partial instantiation. This fixes that.
This commit is contained in:
parent
313328bf0d
commit
f916971913
@ -1880,7 +1880,9 @@ def main(args=None):
|
||||
)
|
||||
|
||||
isFullInstance = {
|
||||
axisTag for axisTag, limit in axisLimits.items() if not isinstance(limit, tuple)
|
||||
axisTag
|
||||
for axisTag, limit in axisLimits.items()
|
||||
if limit is None or limit[0] == limit[2]
|
||||
}.issuperset(axis.axisTag for axis in varfont["fvar"].axes)
|
||||
|
||||
instantiateVariableFont(
|
||||
|
Loading…
x
Reference in New Issue
Block a user