There are two extra node with corner in one layer, I want to copy all the shapes/paths and its corners to another layer, but can’t copy its corners to another layer through script. Only copied the shapes.
I founder the function copy does not work for extra nodes’ corners.
Do you have any solution.
Thanks a lot.
layer = Glyphs.font.glyphs['uni4E08'].layers
shape = 
for s in layer.shapes:
New Font.glyphs (10.2 KB)
The corners are in
What exactly are you trying to do? Mayer copy the layer and replace it in the other glyph?
Yes, it works.
We want to try to combine Chinese glyphs through different stroke paths with corner.
I found if copy different layer’s hint(corners) together to one glyph’s layer, some corner will locate in wrong position.
Such as belowing example script, after excuting to copy all shapes and hints(corners) together to ‘layer’, the layer4’s corner will locate in wrong position, it will stick to the layer5’s corner.
Do you have any suggestion?
layer1 = Glyphs.font.glyphs['uni4E01'].layers
layer3 = Glyphs.font.glyphs['uni4E03'].layers
layer4 = Glyphs.font.glyphs['uni4E04'].layers
layer5 = Glyphs.font.glyphs['uni4E05'].layers
layer = Glyphs.font.glyphs['uni4E07'].layers
New Font.glyphs (11.1 KB)
And I found if you copy manually not through script is also wrong result.