Inherits from NSObject
Conforms to GSIdentifiableParameter
Declared in GSAxis.h

Overview

GSAxis represents an axis in a GSFont object.

@attention This class is not to be confused with the GXAxis class!

Properties

axisTag

A four-letter tag representing the axis type.

@property (nullable, nonatomic, strong) GSAxisTag axisTag

Discussion

@attention This property can not be called tag as this conflicts with multiple existing properties/methods of the same name but type NSInteger. This would lead to build errors when accessing this property on objects of type id.

defaultValue

For variation axes, this is the default value.

@property (nonatomic) CGFloat defaultValue

Discussion

Note: Minimum and maximum values are not currently accessed, so there are no properties for them yet.

@attention This property can not be called default as this conflicts with a reserved keyword.

isDefault

TODO: Add documentation

@property (nonatomic) BOOL isDefault

Discussion

@attention This property can not be called default as this conflicts with a reserved keyword.

name

The human-readable axis name.

@property (nonatomic, copy) NSString *name

Instance Methods

initWithName:tag:

Convenience initializer (the properties are mutable after initialization).

- (instancetype)initWithName:(NSString *)name tag:(nullable GSAxisTag)tag

shortAxisTag

shorter axisTag for UI purposes

- (NSString *)shortAxisTag