Declaration

func importAFM(_ AFMString: String, fontMaster: GSFontMaster?, verticalMetrics: Bool, metrics doMetrics: Bool, kerning doKerning: Bool) throws

Declaration

- (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

AFMString

The AFM file contents.

fontMaster

The master that receives imported metrics and kerning, or nil to use the first master.

verticalMetrics

A Boolean value that controls whether vertical metrics are imported.

doMetrics

A Boolean value that controls whether glyph sidebearings and widths are imported.

doKerning

A Boolean value that controls whether kerning pairs are imported.

Parameters

AFMString

The AFM file contents.

fontMaster

The master that receives imported metrics and kerning, or nil to use the first master.

verticalMetrics

A Boolean value that controls whether vertical metrics are imported.

doMetrics

A Boolean value that controls whether glyph sidebearings and widths are imported.

doKerning

A Boolean value that controls whether kerning pairs are imported.

error

On 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