Protocol

NSGlyphStorage

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

Declaration

@protocol NSGlyphStorage

Overview

An example of a class that conforms to the NSGlyphStorage protocol is NSLayoutManager.

Topics

Returning text storage

- attributedString

Returns the text storage object from which the NSGlyphGenerator object procures characters for glyph generation.

Required.

Returning glyph display options

- layoutOptions

Returns the current layout options.

Required.

Modifying the glyph cache

- insertGlyphs:length:forStartingGlyphAtIndex:characterIndex:

Inserts the given glyphs into the glyph cache and maps them to the specified characters.

Required.

- setIntAttribute:value:forGlyphAtIndex:

Sets a custom attribute value for a given glyph.

Required.

Constants

Layout Options

Layout options returned as a bit mask by the layoutOptions method.

See Also

Glyphs

NSGlyph

The type used to specify glyphs.

NSGlyphGenerator

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

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