在“编码”菜单下的 FontForge GUI 中,有一个“分离字形”选项。我可以在 Python 中做到这一点吗?
更具体地说,在我的 Python 脚本中,当我删除附加到另一个字形的字形时,两者都被清除。我怎样才能避免这种情况?
我能够从这里找到解决方法https://sourceforge.net/p/fontforge/mailman/message/29723762/
它本质上是:
font.selection.select("a") #select glyph
font.copy()
for i in font.selection.byGlyphs:
font.removeGlyph(i)
font.selection.select("a")
font.paste()