Instance Method

getGlyphsInRange:glyphs:characterIndexes:glyphInscriptions:elasticBits:bidiLevels:

Extracts the information needed to lay out the provided glyphs from the provided range.

Declaration

- (NSUInteger)getGlyphsInRange:(NSRange)glyphsRange glyphs:(NSGlyph *)glyphBuffer characterIndexes:(NSUInteger *)charIndexBuffer glyphInscriptions:(NSGlyphInscription *)inscribeBuffer elasticBits:(BOOL *)elasticBuffer bidiLevels:(unsigned char *)bidiLevelBuffer;

Parameters

glyphsRange

The range of glyphs.

glyphBuffer

The glyphs to lay out.

charIndexBuffer

The original characters for the glyphs. Note that a glyph at index 1 is not necessarily mapped to the character at index 1, because a glyph may be for a ligature or accent.

inscribeBuffer

The inscription attributes for each glyph, which are used to layout characters that are combined together.

elasticBuffer

Contains a Boolean value indicating whether a glyph is elastic for each glyph. An elastic glyph can be made longer at the end of a line or when needed for justification.

bidiLevelBuffer

Contains the bidirectional level value generated by NSGlyphGenerator, in case a subclass chooses to use this value.

Discussion

A subclass can override this method to interact with custom glyph storage.

See Also

Deprecated

- actionForControlCharacterAtIndex:

Returns the action associated with a control character.

Deprecated
- deleteGlyphsInRange:

Deletes the specified glyphs from the glyph cache maintained by the layout manager.

Deprecated
- substituteGlyphsInRange:withGlyphs:

Replaces the specified glyphs with specified replacement glyphs.

Deprecated
- insertGlyph:atGlyphIndex:characterIndex:

Enables the typesetter to insert a new glyph into the stream.

Deprecated
NSTypesetterControlCharacterAction

The following constants are possible values returned by the actionForControlCharacterAtIndex: method to determine the action associated with a control character.