Instance Method
sortGlyphs(_:withList:) sortGlyphs:withList: sortGlyphs_withList_
Sorts a mutable glyph array using a glyph-name order list and glyph metadata.
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
glyphsA mutable array of glyphs to sort in place.
nameListGlyph names that should be ordered before the standard metadata order, or
nilto 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
Keeps alternate glyphs next to their base glyph when sorting glyphs.
Sorts the font’s glyphs using the font glyph order and glyph metadata.
Invalidates the glyph name and identifier lookup caches.