Class
GSGuide
A guide used to align and measure outlines while editing.
Declaration
class GSGuideDeclaration
@interface GSGuide : GSElementDeclaration
class GSGuide(GSElement)Overview
Guides assist drawing in the editor and are not exported as part of a font’s outlines. A guide has a position and angle in the coordinate system of the layer where it is displayed.
A guide belongs either to a layer (local guide) or to a master (global guide).
A global guide can use a filter to limit the glyphs in which it is visible. The space glyph shows all global guides, ignoring their filters.
Attach and detach guides through the guide collection APIs of the layer or master to keep ownership consistent.
Overview
A guide belongs either to a layer or to a master. Local guides apply to one layer, while global guides can be displayed across the layers associated with their master.
Topics
Angle
The rotation in degrees, with zero degrees along the positive x-axis.
Whether changes to the angle are disabled.
Whether the angle is represented as a slope.
The UI representation of the angle as degrees or a slope.
The start point used to represent the line at the specified layer width.
The end point used to represent the line at the specified layer width.
Identity and Visibility
A descriptive name displayed along the guide.
A predicate controlling which glyphs display a global guide.
Whether the guide is visible in a glyph.
Measurements and Grid
Whether distances between consecutive outline intersections are displayed.
The distance in font units between tick marks along a line guide.
The outline intersections calculated for the most recently supplied layer.
Calculates the intersections between the guide and a layer’s outlines.
Interaction
A transient handle for rotating the guide.
Whether a point is within a given distance of the guide.
Equality
Whether another guide has equivalent geometry and settings.
Legacy API
The geometry of a guide.
The type of the guide.
The length of the guide.
The size of the guide.
Relationships
Inherits From
Conforms To
Foundation.NSCopying- GSSelectableElementProtocol
- GSUserDataProtocol
ObjectiveC.NSObjectProtocolSwift.CVarArgSwift.CustomDebugStringConvertibleSwift.CustomStringConvertibleSwift.EquatableSwift.Hashable