init(glyph:forFont:baseString:)
Instantiates and returns a glyph information object using a glyph index and a specified font.
Declaration
init?(glyph: NSGlyph, forFont font: NSFont, baseString string: String)Parameters
- glyph:
The identifier of the glyph.
- font:
The font object to be associated with the returned
NSGlyphInfoobject, - string:
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.