Hi, I try to sync the metrics keys in the exported UFOs. I have a “virtual” font which comes from `Font.copy()’ right at the very beginning. All other things I do to this copy work well (for example deleting a lot of glyphs) and only apply to the copy and not the real .glyphs file (exactly as I want it.
However, when I try to sync the layers in the virtual font, they a) are still not in sync in the exported UFO and b) my actual font suddenly shows some glyphs with the darker background in the font overview (meaning that they changed). This is kinda scary, I don’t want ANY changes to the original font. But I want the sync to happen to the virtual font.
for glyph in virtualFont.glyphs: for layer in glyph.layers: layer.syncMetrics()
When I make another copy of the already copied font like so:
virtualFontCopy = virtualFont.copy()
and call the code on this copy-copy, it at least leaves my original .glyphs file untouched. But the outcome still hast unsynced metrics keys in the interpolations.