API Collection
GSLayer Attributes
Additional values stored for a layer.
Overview
Attributes describe layer behavior and special layer formats. Use user data for persistent values and temporary data for values that are not stored in the source file.
Attribute and user data values must support property-list encoding.
Use unique, namespaced keys for user-defined values. Keys prefixed with GS are reserved by Glyphs.
Topics
Attributes
Values that configure layer behavior and special layer formats.
The number of attributes.
The value for an attribute key, or
nilif no value is set.Replaces all attributes without registering undo or notifying the glyph.
Sets or removes an attribute.
Sets an attribute without registering undo or notifying the glyph.
Removes an attribute.
Temporary Data
Values associated with the layer for transient use.
Sets or removes a temporary value.
The temporary value for a key, or
nilif no value is set.
User Data
Persistent values associated with the layer by API clients.
The user-data value for a key, or
nilif no value is set.Sets or removes a persistent user-data value.
Removes a user-data value.
See Also
The different roles that a layer can serve.
The paths and components that form the outline of a layer.
Bounding rectangles of outlines, selections, and metrics.
Side bearings, baseline offsets, layer box, and metrics keys.
Setting for rounding coordinates on a layer.
Background content and reference images associated with a layer.
Named attachment points on a layer.
Manual and generated hint data on a layer.
Layer-local guides used while editing outlines.
Spacing adjustment between specific layers.
Layer-local notes displayed with a glyph.
Axis coordinates and rules that place layers in a design space.
Colors used to draw a layer.
Intersections between layer outlines and line segments.
Operations for modifying outlines and other layer content.