Instance Method
importFeatures(_:)importFeatures:error: importFeatures_error_
Imports OpenType feature code into the font.
Declaration
func importFeatures(_ featuresString: String) throwsDeclaration
- (BOOL) importFeatures:(NSString *) featuresString error:(NSError **) error;Declaration
importFeatures_error_(featuresString: str) -> tuple[bool, NSError]Parameters
errorOn output, a pointer to an error object that describes why the method failed, or
nilif no error occurred. If you are not interested in the error information, passnilfor this parameter.
Discussion
Parsed features are appended to the layout feature collection. Class and prefix blocks are imported into their corresponding collections.
Return Value
YES if the method succeeded, otherwise NO.
Discussion
Parsed features are appended to the layout feature collection. Class and prefix blocks are imported into their corresponding collections.
See Also
Layout Features
Layout features used when compiling OpenType feature code.
Number of layout features.
Layout feature at an index, or
nilwhen the index is out of range.The index of a layout feature, or
nilwhen the feature is not in the font.Returns the first layout feature with a tag.
Returns the first enabled layout feature with a tag.
Returns the first automatic layout feature with a tag.
Returns the first automatic layout feature with a tag.
Adds a layout feature.
Inserts a layout feature at an index.
Removes a layout feature.
Removes the layout feature at an index.
Replaces the layout feature at an index.
Updates automatic layout features and classes.
See Also
Layout Features
Layout features used when compiling OpenType feature code.
Number of layout features.
Layout feature at an index, or
nilwhen the index is out of range.Index of a layout feature, or
NSNotFoundwhen the feature is not in the font.Returns the first layout feature with a tag.
Returns the first enabled layout feature with a tag.
Returns the first automatic layout feature with a tag.
Returns the first automatic layout feature with a tag.
Adds a layout feature.
Inserts a layout feature at an index.
Removes a layout feature.
Removes the layout feature at an index.
Replaces the layout feature at an index.
Updates automatic layout features and classes.