I’m trying to set a 4-axis variable font. Everything works well, except that my variable font in all apps (web too) seems like ignoring the shape of one master :((. The range of the axis is correct but the shape is crazy one. I’m pretty sure the master’s axis coordinates are ok.
layersWithLockedComponents=[]
for g in Font.glyphs:
for l in g.layers:
if l.isMasterLayer or l.isSpecialLayer:
hasLockedComponent = False
for c in l.components:
if c.locked:
hasLockedComponent = True
if hasLockedComponent:
layersWithLockedComponents.append(l)
if layersWithLockedComponents:
t = Font.newTab()
t.layers = layersWithLockedComponents
for l in layersWithLockedComponents:
print l
else:
print "No locked components found."
It will open a tab with all layers containing locked components. You unlock by right-clicking the component in question and choosing Unlock.