googlefonts / glyphsLib

A bridge from Glyphs source files (.glyphs) to UFOs
Apache License 2.0
178 stars 51 forks source link

GSFont.axis axes on format 2 files with one axis returns two axes #990

Open simoncozens opened 3 months ago

simoncozens commented 3 months ago

When a GSFont object is constructed, it instantiates .axes with the default axes, width and weight. Glyphs 3 files specify the axes explicitly, so this is replaced with GSAxis objects read from the plist. But Glyphs 2 files don't have an axes entry, so they continue to get the default ones. This means that a font which has no meaningful variation on the weight axis still reports having a weight axis.

Whether this is correct or wrong is probably a matter of interpretation. I feel like it's wrong, personally.

anthrotype commented 3 months ago

I noticed that as well at some point.. What does Glyphs.app's python API returns for such a font when you ask it to list its axes?

schriftgestalt commented 3 months ago

I didn’t check but that is most likely fixed in the Glyphs3 branch.