Instance Method
generateGlyphs(_:completion:) generateGlyphs:callback: generateGlyphs_callback_
Creates and adds glyphs for a sequence of glyph names and Unicode ranges.
Declaration
func generateGlyphs(_ glyphNames: [String], completion callback: (@Sendable ([GSGlyph]) -> Void)? = nil)func generateGlyphs(_ glyphNames: [String]) async -> [GSGlyph]Declaration
- (void) generateGlyphs:(NSArray<NSString *> *) glyphNames callback:(void (^)(NSArray<GSGlyph *> *glyphs)) callback;Declaration
generateGlyphs_callback_(glyphNames: list[str], glyphs: list[GSGlyph], callback)Parameters
glyphNamesGlyph names and Unicode ranges to generate.
callbackCalled with the added glyphs after generation succeeds.
Discussion
A range has the form start:end, where both endpoints identify encoded glyphs. Conflicting names or Unicode values require user confirmation before the glyphs are added.
See Also
Adding and Removing Glyphs
Creates a glyph configured for the font without adding it to glyphs.
Creates a glyph configured for the font without adding it to glyphs.
Adds a glyph to the font.
Adds a glyph without undo, observer notifications, synchronization, or cache updates.
Adds a sequence of glyphs to the font as one undoable change.
Removes a glyph from the font and clears its parent.
Removes a sequence of glyphs from the font as one undoable change.