Instance Method
decomposeBracketLayersSubstitutions(_:)decomposeBracketLayersSubstitutions:error: decomposeBracketLayersSubstitutions_error_
Separates Alternative layer groups into glyphs for variable-font substitution.
Declaration
func decomposeBracketLayersSubstitutions(_ substitutions: NSMutableArray!) throws -> [Any]Declaration
- (NSArray *) decomposeBracketLayersSubstitutions:(NSMutableArray *) substitutions error:(NSError **) error;Declaration
decomposeBracketLayersSubstitutions_error_(substitutions: list) -> tuple[list, NSError]Parameters
substitutionsA collection to which the substitution rules are appended.
Parameters
substitutionsA collection to which the substitution rules are appended.
errorOn return, an error that prevented the layer groups from being separated.
Return Value
The added glyphs, an empty array when no separation is needed, or nil on failure.
Discussion
The receiver retains its first layer group. Other Alternative layer groups become returned glyphs, including required variants of composite glyphs.
See Also
Curve Conversion
Converts the glyph’s compatible interpolation layers to quadratic curves.
Converts specified compatible layers to quadratic curves.
Converts cubic segments that can be approximated within a tolerance to quadratic segments.
Prepares compatible interpolation layers for TrueType curve conversion.
Prepares selected interpolation layers for TrueType curve conversion.