Inherits from NSObject
Declared in GSFeatureGenerator.h

Overview

Generates the OT features for the Font.

Class Methods

sharedManager

This retunes the feature genrator object.

+ (GSFeatureGenerator *)sharedManager

Return Value

This is always the same object

Instance Methods

makeFeatures:error:

Generates all default features

- (BOOL)makeFeatures:(GSFont *)font error:(NSError **)error

Parameters

font

a font

error

if something goes wrong, retunes an NSError by reference.

Return Value

NO if there was a problem

Discussion

This equivalent with pressing the Update button in font info

reset

resets the generator to a clean state. Call that between generation for different fonts

- (void)reset

updateClassForTag:forFont:error:

Updates a particular class

- (BOOL)updateClassForTag:(NSString *)tag forFont:(GSFont *)font error:(NSError **)error

Parameters

tag

The name for the class that should be updated

font

The font object that contains the class

error

if something goes wrong, retunes an NSError by reference.

Return Value

NO if there was a problem

Discussion

This cold be the @Uppercase class

updateFeature:forFont:error:

Updates a particular feature

- (BOOL)updateFeature:(GSFeature *)feature forFont:(GSFont *)font error:(NSError **)error

Parameters

feature

The Feature that should be updated

font

The font object that contains the feature

error

if something goes wrong, retunes an NSError by reference.

Return Value

NO if there was a problem

Discussion

If the Feature is not there, it will be added

updatePrefixForTag:forFont:error:

Updates a particular prefix

- (BOOL)updatePrefixForTag:(NSString *)tag forFont:(GSFont *)font error:(NSError **)error

Parameters

tag

The name for the prefix that should be updated

font

The font object that contains the prefix

error

if something goes wrong, retunes an NSError by reference.

Return Value

NO if there was a problem