Why can one not iterate over the AlignmentZones?
print Glyphs.font.masters[0].alignmentZones # <-- prints an objective-c class __NSArrayM
for AZ in Glyphs.font.masters[0].alignmentZones: # <-- doesn’t work
print AZ
Why can one not iterate over the AlignmentZones?
print Glyphs.font.masters[0].alignmentZones # <-- prints an objective-c class __NSArrayM
for AZ in Glyphs.font.masters[0].alignmentZones: # <-- doesn’t work
print AZ
I believe GSFont.masters is not properly wrapped in the latest beta.
The iteration does work. Only the print crashes. I have fixed it.
try:
for AZ in Glyphs.font.masters[0].alignmentZones:
print AZ.position, AZ.size
Ahh, nice. Thank you very much. Works!