<!--
{
  "documentType" : "article",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/nsfont-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 getAdvancements(NSSizeArray, forGlyphs: UnsafePointer<NSGlyph>, count: Int)`](/documentation/AppKit/NSFont/getAdvancements(_:forGlyphs:count:))

Returns an array of the advancements for the specified glyphs rendered by the receiver.

[`func getAdvancements(NSSizeArray, forPackedGlyphs: UnsafeRawPointer, length: Int)`](/documentation/AppKit/NSFont/getAdvancements(_:forPackedGlyphs:length:))

Returns an array of the advancements for the specified packed glyphs and rendered by the receiver.

[`func advancement(forGlyph: NSGlyph) -> NSSize`](/documentation/AppKit/NSFont/advancement(forGlyph:))

Returns the nominal spacing for the given glyph—the distance the current point moves after showing the glyph—accounting for the receiver’s size.

[`func boundingRect(forGlyph: NSGlyph) -> NSRect`](/documentation/AppKit/NSFont/boundingRect(forGlyph:))

Returns the bounding rectangle for the specified glyph, scaled to the receiver’s size.

[`func getBoundingRects(NSRectArray, forGlyphs: UnsafePointer<NSGlyph>, count: Int)`](/documentation/AppKit/NSFont/getBoundingRects(_:forGlyphs:count:))

Returns an array of the bounding rectangles for the specified glyphs rendered by the receiver.

[`func glyph(withName: String) -> NSGlyph`](/documentation/AppKit/NSFont/glyph(withName:))

Returns the named encoded glyph, or –1 if the receiver contains no such glyph.

[`func screenFont(with: NSFontRenderingMode) -> NSFont`](/documentation/AppKit/NSFont/screenFont(with:))

Returns a bitmapped screen font, when sent to a font object representing a scalable PostScript font, with the specified rendering mode, matching the receiver in typeface and matrix (or size), or `nil` if such a font can’t be found.

### Deprecated properties

[`var renderingMode: NSFontRenderingMode`](/documentation/AppKit/NSFont/renderingMode)

The rendering mode of the font.

[`var printer: NSFont`](/documentation/AppKit/NSFont/printer)

The scalable PostScript font corresponding to current font.

[`var screen: NSFont`](/documentation/AppKit/NSFont/screen)

The bitmapped screen font for the current font.

### Deprecated types

[`enum NSMultibyteGlyphPacking`](/documentation/AppKit/NSMultibyteGlyphPacking)

A constant for glyph packing.

[`enum NSFontRenderingMode`](/documentation/AppKit/NSFontRenderingMode)

The font rendering mode.



---

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)