Initializer

init(glyphName:for:baseString:)

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

Declaration

init?(glyphName: String, for font: NSFont, baseString string: String)

Parameters

glyphName

The name of the glyph.

font

The font object to be associated with the returned NSGlyphInfo object,

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?(characterIdentifier: Int, collection: NSCharacterCollection, baseString: String)

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

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

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

Deprecated