Instance Method
validateName(_:)validateName:validateName_
Checks whether a glyph name can be assigned to the receiver.
Declaration
func validateName(_ name: String) -> (any Error)?Declaration
- (NSError *) validateName:(NSString *) name;Declaration
validateName_(name: str) -> NSErrorParameters
nameThe proposed glyph name.
Return Value
An error describing why the name is invalid, or nil when the name is valid.
Discussion
In addition to the name syntax, this checks the glyph information and prevents duplicate names within the font.
See Also
Glyph Name
The glyph name used within Glyphs.
Assigns a glyph name and updates related glyph information.
Assigns a glyph name with control over related updates.
Assigns a glyph name without updating related state.
Assigns a glyph name and updates name lookup in the containing font.
The glyph name used within Glyphs, with font references updated when it changes.
Assigns a glyph name and updates references to the old glyph name within the font.
Finds the standard glyph name corresponding to a nonstandard name.
Checks whether a string follows the glyph name syntax.