Glyphs seems to be deleting instance userData
whenever it opens an existing font project.
I tested with Glyphs 3.1 (3133) and 3.1.1 (3140) in safe mode and with various projects. I ran the code below, saved the font project, and confirmed that the user data was saved by opening the project file in a text editor and searching for it. But as soon as I reopen the project in Glyphs, the user data is gone. I can’t access it via the Python API and if I save the project again I can confirm that the user data is not longer in the file. This doesn’t seem to be an issue the first time a new font project is reopened, but it seems to happen on all subsequent opens.
This userData
deletion bug is quite urgent for my project. Can this be fixed?
firstInstance = Glyphs.font.instances[0]
print( firstInstance.userData['myCustomKey'] )
firstInstance.userData['myCustomKey'] = "ABCXYZ"
print( firstInstance.userData['myCustomKey'] )
Single Glyph Project.glyphs (857 Bytes)