GSGlyph() always adds “newGlyph” in Glyphs 2

Hi Glyphs team,

It looks like I can’t add glyphs with a Python command in Glyphs 2:
Glyphs.font.glyphs.append(GSGlyph('dcaron'))
No matter what I put as the first parameter, Glyphs creates a newGlyph without unicode. This also happens on a newly created font. My Glyphs version is 2.6.8 (1361). Can you please see if you can reproduce this?

Thank you,
Maciej

This probably only works in G3. Try creating the glyph first, then changing its name, then adding it:

g=GSGlyph()
g.name="Dcaron"
Glyphs.font.glyphs.append(g)

Hi @mekkablue,

This works, thank you for the fix!