copy margins

Copy left / right margins from selected glyphs to the same glyphs in another font or layer.

RF3 RoboFont 3 code which still works in RoboFont 4. Not updated to the new RoboFont 4 APIs yet.

source
source layer in the current font
target
destination font and layer
left / right
select which margins to copy
copy
copy margins from source glyphs to target glyphs