Instance Method
glyphNames(forWildcard:contextLabel:) glyphNamesForWildcard:contextLabel:error: glyphNamesForWildcard_contextLabel_error_
Returns the local glyph names matching a name query.
Declaration
func glyphNames(forWildcard query: String, contextLabel: String) throws -> [String]Declaration
- (NSArray<NSString *> *) glyphNamesForWildcard:(NSString *) query contextLabel:(NSString *) contextLabel error:(NSError **) error;Declaration
glyphNamesForWildcard_contextLabel_error_(query: str, contextLabel: str) -> tuple[list[str], NSError]Parameters
queryThe name query to evaluate.
contextLabelA description of the query’s source for use in errors.
Parameters
queryThe name query to evaluate.
contextLabelA description of the query’s source for use in errors.
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
A query can be a literal glyph name, a name pattern containing *, a glyph property comparison such as script=arabic, a predicate token enclosed in braces, or a glyph class name prefixed with @.
See Also
Glyph Name Queries
Expands name queries into a set of local glyph names.
Returns the part of a matching glyph name represented by
*in a name pattern, ornilwhen the pattern does not contain*or the glyph name is shorter than the pattern.Rebuilds the cache that maps local glyph names to glyphs.