GlyphsFilter Protocol Reference
Tasks
Other Methods
-
interfaceVersionproperty required method -
titleproperty required method -
keyEquivalentproperty required method -
controllerproperty required method -
– setuprequired method -
– runFilterWithLayer:error:required method -
– runFilterWithLayer:options:error:required method -
– runFilterWithLayers:error:required method -
rerunproperty -
– actionName
Export Filter Support
Properties
controller
the Controller of type GSEditViewController
@property (nonatomic, unsafe_unretained) NSViewController<GSGlyphViewControllerProtocol> *controllerkeyEquivalent
The keyEquivalent to select the Filter.
@property (nonatomic, readonly) NSString *keyEquivalentInstance Methods
actionName
the returned value will be placed as the title of the “OK” button in the filter dialog.
- (NSString *)actionNamefilterNeedsRemoveOverlap
This will be call if the filter should be run from on export of the font. (see: Instance > Custom Properties)
- (BOOL)filterNeedsRemoveOverlapmakeWindowController
Implement it if you need to suply your own window.
- (GSDialogController *)makeWindowControllerReturn Value
a GSDialogController that controlles the window
processFont:withArguments:
Is called to process font when called from a ‘Filter’ custom parameter
- (void)processFont:(GSFont *)Font withArguments:(NSArray *)ArgumentsParameters
- Font
The font to process
- Arguments
A list of arguments
processGlyph:withArguments:
Is called to process font when called from a ‘PreInterpolationFilter’ custom parameter
- (void)processGlyph:(GSGlyph *)glyph withArguments:(NSArray *)argumentsParameters
- glyph
The glyph to process
- arguments
A list of arguments
processLayer:withArguments:
Is called to process a layer when to preview a Filter custom parameter
- (void)processLayer:(GSLayer *)Layer withArguments:(NSArray *)ArgumentsParameters
- Layer
The layer to process
- Arguments
A list of arguments
runFilterWithLayer:error:
This method will be called if one layer is active in Edit View (the nodes are visible) Pay attention to the selection.
- (BOOL)runFilterWithLayer:(GSLayer *)Layer error:(out NSError **)errorrunFilterWithLayer:options:error:
This method will be called if one layer is active in Edit View
- (BOOL)runFilterWithLayer:(GSLayer *)Layer options:(NSDictionary *)options error:(out NSError **)errorParameters
- Layer
The active Layer
- options
A dict containing some options. This might be “CheckSelection” : YES/NO.
- 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.