Declaration

class func isValidNameString(_ name: String, allowSpaces: Bool) throws

Declaration

+ (BOOL) isValidNameString:(NSString *) name allowSpaces:(BOOL) allowSpaces error:(NSError **) error;

Declaration

isValidNameString_allowSpaces_error_(name: str, allowSpaces: bool) -> tuple[bool, NSError]

Parameters

name

The proposed glyph name.

allowSpaces

Whether spaces are permitted within the name.

Parameters

name

The proposed glyph name.

allowSpaces

Whether spaces are permitted within the name.

error

On 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