Type Method
isValidNameString(_:allowSpaces:) isValidNameString:allowSpaces:error: isValidNameString_allowSpaces_error_
Checks whether a string follows the glyph name syntax.
Declaration
class func isValidNameString(_ name: String, allowSpaces: Bool) throwsDeclaration
+ (BOOL) isValidNameString:(NSString *) name allowSpaces:(BOOL) allowSpaces error:(NSError **) error;Declaration
isValidNameString_allowSpaces_error_(name: str, allowSpaces: bool) -> tuple[bool, NSError]Parameters
nameThe proposed glyph name.
allowSpacesWhether spaces are permitted within the name.
Parameters
nameThe proposed glyph name.
allowSpacesWhether spaces are permitted within the name.
errorOn failure, an error describing the invalid name.
Discussion
This does not check for duplicate names within a font.
Return Value
YES if the method succeeded, otherwise NO.
Discussion
This does not check for duplicate names within a 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.
Checks whether a glyph name can be assigned to the receiver.
Finds the standard glyph name corresponding to a nonstandard name.