繁体   English   中英

如何使用FontForge Python分离字形?

[英]How to Detach Glyphs with FontForge Python?

在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()

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM