I’m trying to propagate components to all masters and layers in the selection, and while I can get the component into all the selected glyphs, or into all the masters of a selected glyph, I can’t get it to all masters of all the selected glyphs.
I feel like I’m missing something really obvious.
All selected layers:
for layer in font.selectedLayers: layer.components.append(GSComponent(source))
All masters of selected glyph:
for layer in glyph.layers: layer.components.append(GSComponent(source))
“source” refers to user input variable that identifies the glyph to use as a component by name.