Instance Method
importAFM(_:fontMaster:verticalMetrics:metrics:kerning:) importAFM:fontMaster:verticalMetrics:metrics:kerning:error: importAFM_fontMaster_verticalMetrics_metrics_kerning_error_
Imports metrics and kerning from Adobe Font Metrics data.
Declaration
func importAFM(_ AFMString: String, fontMaster: GSFontMaster?, verticalMetrics: Bool, metrics doMetrics: Bool, kerning doKerning: Bool) throwsDeclaration
- (BOOL) importAFM:(NSString *) AFMString fontMaster:(GSFontMaster *) fontMaster verticalMetrics:(BOOL) verticalMetrics metrics:(BOOL) doMetrics kerning:(BOOL) doKerning error:(NSError **) error;Declaration
importAFM_fontMaster_verticalMetrics_metrics_kerning_error_(AFMString: str, fontMaster: GSFontMaster, verticalMetrics: bool, doMetrics: bool, doKerning: bool) -> tuple[bool, NSError]Parameters
AFMStringThe AFM file contents.
fontMasterThe master that receives imported metrics and kerning, or
nilto use the first master.verticalMetricsA Boolean value that controls whether vertical metrics are imported.
doMetricsA Boolean value that controls whether glyph sidebearings and widths are imported.
doKerningA Boolean value that controls whether kerning pairs are imported.
Parameters
AFMStringThe AFM file contents.
fontMasterThe master that receives imported metrics and kerning, or
nilto use the first master.verticalMetricsA Boolean value that controls whether vertical metrics are imported.
doMetricsA Boolean value that controls whether glyph sidebearings and widths are imported.
doKerningA Boolean value that controls whether kerning pairs are imported.
errorOn failure, an error describing the problem.
Discussion
When no master is given, the first master is used.
Return Value
YES if the method succeeded, otherwise NO.
Discussion
When no master is given, the first master is used.
See Also
Importing Font Data
Reads editor and file settings from a Glyphs property-list representation.
Stores temporary serialized data for post-read processing.
Completes the font after reading serialized data.
Completes editor-facing state after reading serialized data.