GSFeatureCodeGeneratorProtocol Protocol Reference
Conforms to | NSObject |
Declared in | GSFeatureCodeGeneratorProtocol.h |
Tasks
+ title
required method+ featureCodeForFeature:font:error:
required method+ featureCodeForClass:font:error:
required method+ featureCodeForPrefix:font:error:
required method
Class Methods
featureCodeForClass:font:error:
class generator callback.
+ (BOOL)featureCodeForClass:(GSClass *)aClass
font:(GSFont *)font error:(NSError
**)error
Parameters
- aClass
-
the feature
- font
-
the font the feature belongs to.
- error
-
if something goes wrong, retunes an NSError by reference.
Return Value
YES if successful, otherwise NO. In the later case the error will hold a explanation.
Discussion
Will be called for each feature after Glyphs has generate code for it. You might replace any code or replace certain parts.
Just return YES for all features that you are not intereseted in.
featureCodeForFeature:font:error:
feature generator callback.
+ (BOOL)featureCodeForFeature:(GSFeature *)feature
font:(GSFont *)font error:(NSError
**)error
Parameters
- feature
-
the feature
- font
-
the font the feature belongs to.
- error
-
if something goes wrong, retunes an NSError by reference.
Return Value
YES if successful, otherwise NO. In the later case the error will hold a explanation.
Discussion
Will be called for each feature after Glyphs has generate code for it. You might replace any code or replace certain parts.
Just return YES for all features that you are not intereseted in.
featureCodeForPrefix:font:error:
prefix generator callback.
+ (BOOL)featureCodeForPrefix:(GSFeature *)prefix
font:(GSFont *)font error:(NSError
**)error
Parameters
- prefix
-
the feature
- font
-
the font the feature belongs to.
- error
-
if something goes wrong, retunes an NSError by reference.
Return Value
YES if successful, otherwise NO. In the later case the error will hold a explanation.
Discussion
Will be called for each feature after Glyphs has generate code for it. You might replace any code or replace certain parts.
Just return YES for all features that you are not intereseted in.