init(glyphName:forFont:baseString:)
Instantiates and returns a glyph information object using a glyph name and a specified font.
Declaration
init?(glyphName: String, forFont font: NSFont, baseString string: String)Parameters
- glyphName:
The name 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.