Copy stroke attribute across glyphs?

Hello, Is there a way to set or change the stroke weight attribute across a whole bunch of glyphs rather than individually path by path, glyph by glyph?
I’ve got all glyphs stroked with one weight and want to increase the weight to make a heavier version.
Cheers
Jamie

Paste this in the Macro Window and adjust weight and width accordingly for all selected layers:

height = 30
width = 30

for layer in Font.selectedLayers:
	for path in layer.paths:
		path.attributes["strokeHeight"] = height
		path.attributes["strokeWidth"] = width

(Of course also click “Run” after adjusting the values)

1 Like

Will do! Thanks very much, that’s super helpful.

There is a mekkablue script for that.

2 Likes

Thanks!