Class
GSAxis
GSAxis represents an axis in a GSFont object.
Declaration
class GSAxisDeclaration
@interface GSAxis : NSObjectDeclaration
class GSAxis(NSObject)Topics
Structures
Initializers
Convenience initializer (the properties are mutable after initialization).
Instance Properties
A tag representing the axis type.
The four-character tag representing the axis type.
For variation axes, this is the default value.
Whether the axis has a four letter axis tag. Axis with longer tags are used for HOI.
TODO: Add documentation
The hidden.
The human-readable axis name.
The names.
GSFontfor font-wide axes,GSGlyphfor glyph-local axes.a dictionary that stores data. It will not be written to disk.
Instance Methods
Adds the name
The number of names
Returns the index of name in names
Inserts the name at index into names
Returns object at idx in names
Removes the name
Removes the name at idx
Removed the object with this key.
Adds key/value to tempData. Pass nil as value to remove previous set data
Adds something to the fonts userData.
shorter axisTag for UI purposes
return value for key in tempData
convenience accessor to get to the content of the userData dict
Type Methods
Topics
Instance Properties
A tag representing the axis type.
The four-character tag representing the axis type.
For variation axes, this is the default value.
Whether the axis has a four letter axis tag. Axis with longer tags are used for HOI.
TODO: Add documentation
The hidden.
The human-readable axis name.
The names.
GSFontfor font-wide axes,GSGlyphfor glyph-local axes.a dictionary that stores data. It will not be written to disk.
Instance Methods
Adds the name
The number of names
Returns the index of name in names
Convenience initializer (the properties are mutable after initialization).
Inserts the name at index into names
Returns object at idx in names
Removes the name
Removes the name at idx
Removed the object with this key.
Adds key/value to tempData. Pass nil as value to remove previous set data
Adds something to the fonts userData.
shorter axisTag for UI purposes
return value for key in tempData
convenience accessor to get to the content of the userData dict
Type Methods
Other
Relationships
Inherits From
NSObject
Conforms To
- GSContainerProtocol
- GSIdentifiableParameter
- GSUserDataProtocol
ObjectiveC.NSObjectProtocolSwift.CVarArgSwift.CustomDebugStringConvertibleSwift.CustomStringConvertibleSwift.EquatableSwift.Hashable
Relationships
Inherits From
NSObject
Conforms To
See Also
Essentials
The top-level model object of a Glyphs document.
A named glyph and its layer collection in a font.
The drawing and editing representation of a glyph.