Instance Method
layerGroupsInstances(_:masters:ignoreEmptyLayers:error:) layerGroupsInstances:masters:ignoreEmptyLayers:error: layerGroupsInstances_masters_ignoreEmptyLayers_error_
The layer identifier groups required by a set of instances.
Declaration
func layerGroupsInstances(_ instances: [GSInstance]?, masters: [GSFontMaster]?, ignoreEmptyLayers: Bool, error: NSErrorPointer) -> [NSMutableOrderedSet]Declaration
- (NSArray<NSMutableOrderedSet<NSString *> *> *) layerGroupsInstances:(NSArray<GSInstance *> *) instances masters:(NSArray<GSFontMaster *> *) masters ignoreEmptyLayers:(BOOL) ignoreEmptyLayers error:(NSError **) error;Declaration
layerGroupsInstances_masters_ignoreEmptyLayers_error_(instances: list[GSInstance], masters: list[GSFontMaster], ignoreEmptyLayers: bool) -> tuple[list[NSMutableOrderedSet<NSString *>], NSError]Parameters
instancesThe instances that determine which layers participate, or
nilfor forced grouping.mastersThe font masters to consider and include when necessary.
ignoreEmptyLayersWhether to omit layers without content.
errorOn return, an error encountered while resolving the masters of a variable instance.
Discussion
Passing nil for instances groups all active master, Intermediate, Alternative, and color layers independently of the font’s instances. Groups that share a layer identifier are combined.
See Also
Layer Groups
The layer identifier groups used to check compatibility and coordinate edits across corresponding layers.
The layer identifier groups formed without reference to configured instances.
The forced layer group containing a layer, or
nilwhen the layer is not in a group.The forced layer group containing a layer, or
nilwhen the layer is not in a group.The forced layer group containing a layer as an array, or
nilwhen the layer is not in a group.The identifiers of layers in the same group that have compatible shapes, anchors, and path-component hints.
The font masters including representations of active Intermediate-layer locations.