Instance Method
safeName(forName:)safeNameForName:safeNameForName_
A name that is unique among the local glyphs in the font.
Declaration
func safeName(forName glyphName: String) -> StringDeclaration
- (NSString *) safeNameForName:(NSString *) glyphName;Declaration
safeNameForName_(glyphName: str) -> strParameters
glyphNameThe glyph name to check.
Discussion
The supplied name is returned unchanged when it is available. Otherwise, an existing three-digit numeric suffix is replaced or a new one is appended.
See Also
Glyph Names
A name that is unique among the local glyphs in the font.
A suffix that makes the glyph name unique among the local glyphs in the font, or
nilwhen no suffix is needed.Makes the glyph name unique among the local glyphs in the font.
Notifies the font that a glyph name has changed.
The kinds of references affected by renamed glyphs.
Updates references to renamed glyphs after confirmation when affected references exist.
Updates references to renamed glyphs without requesting confirmation.
Returns whether OpenType feature code contains a glyph name as a complete token.