GSInstance.styleName returns "None"

https://docu.glyphsapp.com/#GSInstance.styleName

In 3.0.4 (3106), this code returns None for every instance, even when a value is set:

for instance in Glyphs.font.instances:
	print(instance.styleName)

The same is true when looking for local style names via .stylesNames["ENG"]

If there is a better way to check if an instance is a Variable Font Setting or an actual export, that would be ideal. An .isVariableFontSetting boolean method on GSInstance would be helpful.

You can use the type property.

1 Like

perfect, thank you florian!