Initializer

init(characterIdentifier:collection:baseString:)

Instantiates and returns an NSGlyphInfo object using a character identifier and a character collection.

Declaration

init?(characterIdentifier cid: Int, collection characterCollection: NSCharacterCollection, baseString string: String)

Parameters

cid

A character identifier.

characterCollection

A string constant representing a character collection. Possible values for characterCollection are described in Constants.

theString

The part of the attributed string the returned instance is intended to override.

Return Value

The created NSGlyphInfo object or nil if the object couldn't be created.

See Also

Creating an NSGlyphInfo Object

init?(glyph: NSGlyph, for: NSFont, baseString: String)

Instantiates and returns an NSGlyphInfo object using a glyph index and a specified font.

Deprecated
init?(glyphName: String, for: NSFont, baseString: String)

Instantiates and returns an NSGlyphInfo object using a glyph name and a specified font.

Deprecated