Declaration

class GSInstance

Declaration

@interface GSInstance : NSObject

Declaration

class GSInstance(NSObject)

Topics

Initializers

Instance Properties

  • The axis values of the instance.

  • A list of the axis values.

  • A list of custom parameter objects.

  • Indicates if the instance should be exported.

  • Reference to the containing font

  • An array of icon presets.

  • A unique identifier for the instance that does not change when other properties such as the same are changed.

  • A dictionary that contains the interpolation coefficients for each master. This is automatically updated if you change interpolationWeight, interpolationWidth, interpolationCustom. It contains FontMaster IDs as keys and coefficients for that master as values. Or, you can set it manually if you set manualInterpolation to true. There is no UI for this, so you need to do that with a script.

  • The style linking bold bit.

  • The style linking italic bit.

  • Indicates if the instance is visible in Preview > Show All instances.

  • The style to use as the regular for this style. If styleName is Medium, you could link to Light. So this instance becomes the Bold style for the Light.

  • Disables automatic calculation of instanceInterpolations This allows manually setting instanceInterpolations.

  • The name of the instance. This is used as the style name.

  • the name particle.

  • A list of property objects.

  • The read buffer dictionary.

  • A dictionary that stores temporary data. It will not be written to disk.

  • The type of the instance.

  • The name of the instance type.

  • The user data dictionary.

  • The weight class UI string (e.g. Regular or Bold).

  • The actual weight class value as set by the weightClass or custom parameter “weightClass”.

  • The width class UI string (e.g. Medium).

  • The actual width class value as set by the widthClass.

Instance Methods

Type Methods

Topics

Instance Properties

  • The axis values of the instance.

  • A list of the axis values.

  • A list of custom parameter objects.

  • Indicates if the instance should be exported.

  • Reference to the containing font

  • An array of icon presets.

  • A unique identifier for the instance that does not change when other properties such as the same are changed.

  • A dictionary that contains the interpolation coefficients for each master. This is automatically updated if you change interpolationWeight, interpolationWidth, interpolationCustom. It contains FontMaster IDs as keys and coefficients for that master as values. Or, you can set it manually if you set manualInterpolation to true. There is no UI for this, so you need to do that with a script.

  • The style linking bold bit.

  • The style linking italic bit.

  • Indicates if the instance is visible in Preview > Show All instances.

  • The style to use as the regular for this style. If styleName is Medium, you could link to Light. So this instance becomes the Bold style for the Light.

  • Disables automatic calculation of instanceInterpolations This allows manually setting instanceInterpolations.

  • The name of the instance. This is used as the style name.

  • the name particle.

  • A list of property objects.

  • The read buffer dictionary.

  • A dictionary that stores temporary data. It will not be written to disk.

  • The type of the instance.

  • The name of the instance type.

  • The user data dictionary.

  • The weight class UI string (e.g. Regular or Bold).

  • The actual weight class value as set by the weightClass or custom parameter “weightClass”.

  • The width class UI string (e.g. Medium).

  • The actual width class value as set by the widthClass.

Instance Methods

Type Methods

Relationships

Inherits From

  • NSObject

Conforms To

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.

  • GSAxis represents an axis in a GSFont object.