I’m trying the keep my bracket layers in sync with its “parent master layer”. It’s pretty easy with
layer.syncMetrics() but only helps with linked key metrics. So I’d like to copy metrics from main master layer to child layers containing brackets in the name. How can I fetch a bracket-layer’s master’s metrics?
This is all I have at the moment.
font = Glyphs.font glyphs = font.glyphs brackets = ('[',']') for glyph in glyphs: for layer in glyph.layers: for bracket in brackets: if bracket in layer.name: # Print layer name containing brackets print layer.name # Copy metric from parent master layer