Instance Method
completions(forName:partialWordRange:) completionsForName:forPartialWordRange: completionsForName_forPartialWordRange_
Returns glyph-name completions for the partial name around a range.
Declaration
func completions(forName partialName: String, partialWordRange charRange: NSRange) -> [String]?Declaration
- (NSArray<NSString *> *) completionsForName:(NSString *) partialName forPartialWordRange:(NSRange) charRange;Declaration
completionsForName_forPartialWordRange_(partialName: str, charRange: NSRange) -> list[str]Parameters
partialNameThe text containing the partial glyph name.
charRangeThe current selection in the text.
Discussion
Completions include local and imported glyphs and are ordered by category, name length, and name. Returns nil when the range does not identify part of a glyph name.
See Also
Accessing Glyphs
Returns the local or imported glyph with a name, or
nilwhen no glyph matches.Returns a glyph for a local lookup by name, or
nilwhen no glyph matches.Returns the local glyph with a name, or
nilwhen no glyph matches.Returns the local or imported glyph with an identifier, or
nilwhen no glyph matches.Returns whether the font defines a local glyph with a name.
The names of the local glyphs in glyph order.
The distinct tags used by local glyphs, sorted by name.
See Also
Accessing Glyphs
Returns the local or imported glyph with a name, or
nilwhen no glyph matches.Returns a glyph for a local lookup by name, or
nilwhen no glyph matches.Returns the local glyph with a name, or
nilwhen no glyph matches.Returns the local or imported glyph with an identifier, or
nilwhen no glyph matches.Returns whether the font defines a local glyph with a name.
Returns the local or imported glyphs matching a sequence of names.
The names of the local glyphs in glyph order.
The distinct tags used by local glyphs, sorted by name.