In the FontForge GUI under the 'Encoding' menu there is an option 'Detach Glyphs.' Can I do this in Python?
More specifically, in my Python script when I remove a glyph that is attached to another glyph, both are cleared. How can I avoid this?
I was able to find a workaround from here https://sourceforge.net/p/fontforge/mailman/message/29723762/
It is essentially:
font.selection.select("a") #select glyph
font.copy()
for i in font.selection.byGlyphs:
font.removeGlyph(i)
font.selection.select("a")
font.paste()
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.