Declaration

func setLayer(
    _ layer: GSLayer,
    forId key: String
)

Declaration

- (void) setLayer:(GSLayer *) layer
            forId:(NSString *) key;

Declaration

setLayer_forId_(
    layer: GSLayer,
    key: str
)

Parameters

layer

The layer to add.

key

The layer identifier, or the font master identifier for a master layer.

Discussion

The layer becomes a child of the glyph and uses the identifier as its layerId. A font master identifier also becomes the layer’s associatedMasterId, making it a master layer. A non-master layer must already identify its associated font master.

See Also

Layers