Deprecated NSLayoutManager Methods

A method identified as deprecated has been superseded and may become unsupported in the future.

Deprecated in OS X v10.7

showPackedGlyphs:length:glyphRange:atPoint:font:color:printingAdjustment:

Draws a range of glyphs. (Deprecated in OS X v10.7. You should instead use showCGGlyphs:positions:count:font:matrix:attributes:inContext:.)

- (void)showPackedGlyphs:(char *)glyphs length:(NSUInteger)glyphLen glyphRange:(NSRange)glyphRange atPoint:(NSPoint)point font:(NSFont *)font color:(NSColor *)color printingAdjustment:(NSSize)printingAdjustment
Parameters
glyphs

The glyphs to draw; may contain embedded NULL bytes.

glyphLen

The number of bytes pointed at by glyphs; this is twice the number of glyphs contained.

glyphRange

The range of glyphs to draw.

point

The point at which to draw the glyphs.

font

The font of the glyphs to draw.

color

Color of the glyphs to draw.

printingAdjustment

NSZeroSize when drawing to the screen, but when printing may contain values by which the nominal spacing between the characters should be adjusted.

Discussion

The glyphRange, point, font, and color parameters are passed in merely for information purposes. They are already set in the graphics state. If for any reason you modify the set color or font, you must restore it before returning from this method.

You should never call this method, but you might override it.

Availability
  • Available in OS X v10.0 and later.
  • Deprecated in OS X v10.7.
Declared In
NSLayoutManager.h