Hey!
I have a question concerning the json schema for the .glyphs format 3 files distributed here:
Can anyone explain the meaning of the different values of the alignment enum for a component?
![]()
Hey!
I have a question concerning the json schema for the .glyphs format 3 files distributed here:
Can anyone explain the meaning of the different values of the alignment enum for a component?
![]()
From GlyphsCore/GSBase.h:
typedef NS_ENUM(int8_t, GSComponentAlignment) {
GSAlignmentNoAligned NS_SWIFT_NAME(none) = -2,
GSAlignmentDisable NS_SWIFT_NAME(disabled) = -1,
GSAlignmentDefault NS_SWIFT_NAME(default) = 0,
GSAlignmentForce NS_SWIFT_NAME(forced) = 1,
GSAlignmentAligned NS_SWIFT_NAME(aligned) = 2,
GSAlignmentHorizontal NS_SWIFT_NAME(horizontal) = 3,
};
shouldAlign)shouldAlign returns NO.Thanks for bringing this up, I’ve updated the schemas with descriptions of each case.
thanks!