Instance Method
axis(forName:)axisForName:axisForName_
Returns the font axis with a name, or nil when no axis matches.
Declaration
func axis(forName axisName: String) -> GSAxis?Declaration
- (GSAxis *) axisForName:(NSString *) axisName;Declaration
axisForName_(axisName: str) -> GSAxisParameters
axisNameThe axis name to look up.
Discussion
Axis names are user-facing labels and are not required to be unique. Prefer axis(forId:)axisForId:axisForId_ when an axis identifier is available.
See Also
Axes
The font axes defining the font design space.
The number of font axes.
The font axis at an index, or
nilwhen the index is out of range.The index of a font axis, or
nilwhen the axis is not in the font.The canonical font axes.
Returns the font axis with an identifier, or
nilwhen no axis matches.Returns the font axis with an OpenType variation tag, or
nilwhen no axis matches.Adds a font axis.
Inserts a font axis at an index.
Removes a font axis.
Removes the font axis at an index.
Returns font axes derived from legacy master coordinate data.
See Also
Axes
The font axes defining the font design space.
The number of font axes.
The font axis at an index, or
nilwhen the index is out of range.Returns the index of a font axis, or
NSNotFoundwhen the axis is not in the font.The canonical font axes.
Returns the font axis with an identifier, or
nilwhen no axis matches.Returns the font axis with an OpenType variation tag, or
nilwhen no axis matches.Adds a font axis.
Inserts a font axis at an index.
Removes a font axis.
Removes the font axis at an index.
Returns font axes derived from legacy master coordinate data.