Mac Developer Library

Developer

AppKit Framework Reference NSGlyphGenerator Class Reference

Options
Deployment Target:

On This Page
Language:

NSGlyphGenerator

Inheritance


Conforms To


Import Statement


Swift

import AppKit

Objective-C

@import AppKit;

Availability


Available in OS X v10.3 and later.

An NSGlyphGenerator object performs the initial, nominal glyph generation phase in the layout process.

The nominal glyph generation pass essentially generates one glyph per character; the typesetter may later make substitutions in the glyph stream, for example, changing an acute accent glyph followed by an “e” glyph into a single acute-accented “é” glyph.

NSGlyphGenerator communicates via the NSGlyphStorage protocol. An example of a class conforming to the protocol is NSLayoutManager.

  • Returns a shared instance of NSGlyphGenerator.

    Declaration

    Swift

    class func sharedGlyphGenerator() -> NSGlyphGenerator

    Objective-C

    + (NSGlyphGenerator *)sharedGlyphGenerator

    Import Statement

    Objective-C

    @import AppKit;

    Swift

    import AppKit

    Availability

    Available in OS X v10.3 and later.