Instance Method
copyGlyphs(_:sourceFontMasterID:targetFontMasterID:addMissing:) copyGlyphs:sourceFontMasterID:targetFontMasterID:addMissing: copyGlyphs_sourceFontMasterID_targetFontMasterID_addMissing_
Copies glyph layers associated with one master identifier to another master identifier.
Declaration
func copyGlyphs(
_ sourceFont: GSFont,
sourceFontMasterID: String,
targetFontMasterID: String,
addMissing: Bool
)Declaration
- (void) copyGlyphs:(GSFont *) sourceFont
sourceFontMasterID:(NSString *) sourceFontMasterID
targetFontMasterID:(NSString *) targetFontMasterID
addMissing:(BOOL) addMissing;Declaration
copyGlyphs_sourceFontMasterID_targetFontMasterID_addMissing_(
sourceFont: GSFont,
sourceFontMasterID: str,
targetFontMasterID: str,
addMissing: bool
)Parameters
addMissingPass
YESto add glyphs that are missing in the receiving font.
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 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.