Instance Method
copyLayers(from:sourceFontMasterID:targetFontMasterID:) copyLayersFrom:sourceFontMasterID:targetFontMasterID: copyLayersFrom_sourceFontMasterID_targetFontMasterID_
Copies layers associated with one master identifier to another master identifier.
Declaration
func copyLayers(
from otherFont: GSFont,
sourceFontMasterID: String,
targetFontMasterID: String
)Declaration
- (void) copyLayersFrom:(GSFont *) otherFont
sourceFontMasterID:(NSString *) sourceFontMasterID
targetFontMasterID:(NSString *) targetFontMasterID;Declaration
copyLayersFrom_sourceFontMasterID_targetFontMasterID_(
otherFont: GSFont,
sourceFontMasterID: str,
targetFontMasterID: str
)Discussion
The copied layers are added to matching glyphs by glyph name.
See Also
Master Content
Adds a local master and copies the content associated with it into the font.
Inserts a local master and copies the content associated with it into the font.
Removes a local master and the layer content associated with it.
Replaces a local master at an index without changing layer content.
Copies glyph layers associated with one master identifier to another master identifier.
Copies master-specific font information from one master identifier to another master identifier.
Adds a master from another font as a new local master.
Adds the generated contents of an instance as a new local master.