Declaration

func sortGlyphs(_ glyphs: NSMutableArray, withList nameList: [String]?)

Declaration

- (void) sortGlyphs:(NSMutableArray<GSGlyph *> *) glyphs withList:(NSArray<NSString *> *) nameList;

Declaration

sortGlyphs_withList_(glyphs: list[GSGlyph], nameList: list[str])

Parameters

glyphs

A mutable array of glyphs to sort in place.

nameList

Glyph names that should be ordered before the standard metadata order, or nil to use only the standard metadata order.

Discussion

Glyphs not listed in nameList are ordered by the standard glyph sort descriptor.

This low-level method mutates glyphs. It does not perform undo registration or font change notifications.

See Also

Glyph Ordering and Caches