Glyph 3 Letters missing subCategory in glyphInfo

If I run print(Glyphs.glyphInfoForName( "a" ).subCategory) in G2, it returns Lowercase, in G3 it returns None. A lot of my scripts that need to detecting letters for building kerning and spacing strings are broken.

In Glyphs 3, case has moved from .subCategory to .case. Here’s an example:

if Glyphs.glyphInfoForName("a").case == GSLowercase:
    print("a is lowercase")

Case constants include GSUppercase, GSLowercase, GSSmallcaps. The documentation will be updated.

1 Like

Thank you, this makes a lot more sense for me to use too