<!--
{
  "documentType" : "article",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/nslayoutmanager-deprecated-symbols",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "Deprecated symbols"
}
-->

# Deprecated symbols

Review symbols that are no longer in active development, and their recommended replacements.

## Overview

Although these symbols are available for use, Apple is no longer actively developing them, and may remove them in a future release. Apple recommends moving away from these symbols and using their indicated replacements instead. Check the individual symbol pages for the recommended replacements.

## Topics

### Deprecated methods

[`func showCGGlyphs(UnsafePointer<CGGlyph>, positions: UnsafePointer<CGPoint>, count: Int, font: UIFont, matrix: CGAffineTransform, attributes: [NSAttributedString.Key : Any], in: CGContext)`](/documentation/UIKit/NSLayoutManager/showCGGlyphs(_:positions:count:font:matrix:attributes:in:))

Renders the glyphs at the specified positions, using the specified attributes.

  <doc://com.apple.documentation/documentation/AppKit/NSLayoutManager/invalidateGlyphs(onLayoutInvalidationForGlyphRange:)>

  <doc://com.apple.documentation/documentation/AppKit/NSLayoutManager/invalidateLayout(forCharacterRange:isSoft:actualCharacterRange:)>

  <doc://com.apple.documentation/documentation/AppKit/NSLayoutManager/textStorage(_:edited:range:changeInLength:invalidatedRange:)>

  <doc://com.apple.documentation/documentation/AppKit/NSLayoutManager/insertGlyph(_:atGlyphIndex:characterIndex:)>

  <doc://com.apple.documentation/documentation/AppKit/NSLayoutManager/insertGlyphs(_:length:forStartingGlyphAt:characterIndex:)>

[`func glyph(at: Int) -> CGGlyph`](/documentation/UIKit/NSLayoutManager/glyph(at:))

Returns the glyph at the specified index.

[`func glyph(at: Int, isValidIndex: UnsafeMutablePointer<ObjCBool>?) -> CGGlyph`](/documentation/UIKit/NSLayoutManager/glyph(at:isValidIndex:))

Returns the glyph at a specified index, and optionally returns a flag indicating whether the requested index is valid.

  <doc://com.apple.documentation/documentation/AppKit/NSLayoutManager/replaceGlyph(at:withGlyph:)>

  <doc://com.apple.documentation/documentation/AppKit/NSLayoutManager/getGlyphs(_:range:)>

  <doc://com.apple.documentation/documentation/AppKit/NSLayoutManager/getGlyphs(in:glyphs:characterIndexes:glyphInscriptions:elasticBits:)>

  <doc://com.apple.documentation/documentation/AppKit/NSLayoutManager/getGlyphs(in:glyphs:characterIndexes:glyphInscriptions:elasticBits:bidiLevels:)>

  <doc://com.apple.documentation/documentation/AppKit/NSLayoutManager/deleteGlyphs(in:)>

  <doc://com.apple.documentation/documentation/AppKit/NSLayoutManager/setCharacterIndex(_:forGlyphAt:)>

  <doc://com.apple.documentation/documentation/AppKit/NSLayoutManager/intAttribute(_:forGlyphAt:)>

  <doc://com.apple.documentation/documentation/AppKit/NSLayoutManager/setIntAttribute(_:value:forGlyphAt:)>

  <doc://com.apple.documentation/documentation/AppKit/NSLayoutManager/setLocations(_:startingGlyphIndexes:count:forGlyphRange:)>

  <doc://com.apple.documentation/documentation/AppKit/NSLayoutManager/rectArray(forCharacterRange:withinSelectedCharacterRange:in:rectCount:)>

  <doc://com.apple.documentation/documentation/AppKit/NSLayoutManager/rectArray(forGlyphRange:withinSelectedGlyphRange:in:rectCount:)>

  <doc://com.apple.documentation/documentation/AppKit/NSLayoutManager/substituteFont(for:)>

  <doc://com.apple.documentation/documentation/AppKit/NSLayoutManager/showPackedGlyphs:length:glyphRange:atPoint:font:color:printingAdjustment:>

### Deprecated properties

[`var hyphenationFactor: CGFloat`](/documentation/UIKit/NSLayoutManager/hyphenationFactor)

The threshold controlling when hyphenation is done.

[attributedString](/documentation/UIKit/nslayoutmanager-attributedstring)

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

[layoutOptions](/documentation/UIKit/nslayoutmanager-layoutoptions)

The layout manager’s current layout options.

  <doc://com.apple.documentation/documentation/AppKit/NSLayoutManager/usesScreenFonts>

### Deprecated types

  <doc://com.apple.documentation/documentation/AppKit/glyph-attributes>

  <doc://com.apple.documentation/documentation/AppKit/NSGlyphInscription>



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)