MonobjcMonobjc Documented Class Library
GetGlyphsInRangeGlyphsCharacterIndexesGlyphInscriptionsElasticBitsBidiLevels Method (glyphRange, glyphBuffer, charIndexBuffer, inscribeBuffer, elasticBuffer, bidiLevelBuffer)
NamespacesMonobjc.AppKitNSLayoutManagerGetGlyphsInRangeGlyphsCharacterIndexesGlyphInscriptionsElasticBitsBidiLevels(NSRange, IntPtr, NSUInteger%, IntPtr, Boolean%, IntPtr)

Returns the glyphs and information needed to perform layout for the given glyph range.

Original signature is '- (NSUInteger)getGlyphsInRange:(NSRange)glyphRange glyphs:(NSGlyph *)glyphBuffer characterIndexes:(NSUInteger *)charIndexBuffer glyphInscriptions:(NSGlyphInscription *)inscribeBuffer elasticBits:(BOOL *)elasticBuffer bidiLevels:(unsigned char *)bidiLevelBuffer'

Available in Mac OS X v10.2 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual NSUInteger GetGlyphsInRangeGlyphsCharacterIndexesGlyphInscriptionsElasticBitsBidiLevels(
	NSRange glyphRange,
	IntPtr glyphBuffer,
	out NSUInteger charIndexBuffer,
	IntPtr inscribeBuffer,
	out bool elasticBuffer,
	IntPtr bidiLevelBuffer
)
Public Overridable Function GetGlyphsInRangeGlyphsCharacterIndexesGlyphInscriptionsElasticBitsBidiLevels ( _
	glyphRange As NSRange, _
	glyphBuffer As IntPtr, _
	<OutAttribute> ByRef charIndexBuffer As NSUInteger, _
	inscribeBuffer As IntPtr, _
	<OutAttribute> ByRef elasticBuffer As Boolean, _
	bidiLevelBuffer As IntPtr _
) As NSUInteger
public:
virtual NSUInteger GetGlyphsInRangeGlyphsCharacterIndexesGlyphInscriptionsElasticBitsBidiLevels(
	NSRange glyphRange, 
	IntPtr glyphBuffer, 
	[OutAttribute] NSUInteger% charIndexBuffer, 
	IntPtr inscribeBuffer, 
	[OutAttribute] bool% elasticBuffer, 
	IntPtr bidiLevelBuffer
)
Parameters
glyphRange (NSRange)
The range of glyphs to lay out.
glyphBuffer (IntPtr)
On output, the sequence of glyphs needed to lay out the given glyph range.
charIndexBuffer (NSUInteger%)
On output, the indexes of the original characters corresponding to the given glyph range. Note that a glyph at index 1 is not necessarily mapped to the character at index 1, since a glyph may be for a ligature or accent.
inscribeBuffer (IntPtr)
On output, the inscription attributes for each glyph, which are used to lay out characters that are combined together. The possible values are described in “Constants.”
elasticBuffer (Boolean%)
On output, values 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 (IntPtr)
On output, the direction of each glyph for bidirectional text. The values range from 0 to 61 as defined by Unicode Standard Annex #9. An even value means the glyph goes left-to-right, and an odd value means the glyph goes right-to-left.
Return Value
The number of glyphs returned in glyphBuffer.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)

Assembly: Monobjc.AppKit (Module: Monobjc.AppKit)