<!--
{
  "availability" : [
    "macOS: 10.5.0 - 10.11.0"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSLayoutManager/invalidateGlyphs(onLayoutInvalidationForGlyphRange:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSLayoutManager(im)invalidateGlyphsOnLayoutInvalidationForGlyphRange:"
  },
  "title" : "invalidateGlyphs(onLayoutInvalidationForGlyphRange:)"
}
-->

# invalidateGlyphs(onLayoutInvalidationForGlyphRange:)

Specifies explicitly when portions of the glyph stream depend on layout.

```
func invalidateGlyphs(onLayoutInvalidationForGlyphRange glyphRange: NSRange)
```

## Parameters

`glyphRange`

The range of glyphs to invalidate.

## Discussion

This method is for the use of the typesetter, to allow it to specify explicitly when portions of the glyph stream depend on layout, for example, because they have had hyphens inserted. Therefore, the glyphs are invalidated the next time their layout is invalidated, so that they will be regenerated before being laid out again.

---

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)