Class

NSGlyphGenerator

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

Declaration

@interface NSGlyphGenerator : NSObject

Overview

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 that conforms to the protocol is NSLayoutManager.

Topics

Obtaining a glyph generator

sharedGlyphGenerator

Returns a shared instance of NSGlyphGenerator.

Generating glyphs

- generateGlyphsForGlyphStorage:desiredNumberOfCharacters:glyphIndex:characterIndex:

Generates glyphs for the specified glyph storage object (NSLayoutManager by default).

Relationships

Inherits From

See Also

Glyphs

NSGlyph

The type used to specify glyphs.

NSGlyphStorage

A set of methods that a glyph storage object must implement to interact properly with NSGlyphGenerator.

NSGlyphInfo

A glyph attribute in an attributed string.

Glyph Attributes

Attributes that are used only inside the glyph generation machinery, but must also be shared between components.

Deprecated
NSConvertGlyphsToPackedGlyphs

Prepares a set of glyphs for processing by character-based routines.

Deprecated