Declaration

func validateName(_ name: String) -> (any Error)?

Declaration

- (NSError *) validateName:(NSString *) name;

Declaration

validateName_(name: str) -> NSError

Parameters

name

The 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