After fontforge.font object is closed, and its memory relased, any operation with its glyphs etc. causes segfault.
Sample script:
import sys, fontforge
font=fontforge.open(sys.argv[1])
gA = font["A"]
font.close()
l = gA.layers[1]
(run it with any Latin-enabled font, e.g. fontforge -script test.py Ambrosia.sfd)
Expected result: the script shall throw RuntimeError instead.
See also discussion in #5348.
After
fontforge.fontobject is closed, and its memory relased, any operation with its glyphs etc. causes segfault.Sample script:
(run it with any Latin-enabled font, e.g.
fontforge -script test.py Ambrosia.sfd)Expected result: the script shall throw
RuntimeErrorinstead.See also discussion in #5348.