Hello Glyphs team,
I am trying to import masters via API:
for importMaster in importFont.masters:
font.masters.append(importMaster)
newMasterID = importMaster.id
for glyph in font.glyphs:
importGlyph = importFont.glyphs[glyph.name]
glyph.layers[newMasterID] = importGlyph.layers[newMasterID]
font.kerning[newMasterID] = importFont.kerning[newMasterID]
In principle it works, but the metrics and stem widths of the imported masters are not set. I guess, they are stored outside of the master object? As my script is from 2018, are there other API changes to consider as well?
Thank you in advance.