<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSATSTypesetter/hyphenCharacter(forGlyphAt:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSATSTypesetter(im)hyphenCharacterForGlyphAtIndex:"
  },
  "title" : "hyphenCharacter(forGlyphAt:)"
}
-->

# hyphenCharacter(forGlyphAt:)

Returns the hyphen character to be inserted after the specified glyph when hyphenation is enabled in the layout manager.

```
func hyphenCharacter(forGlyphAt glyphIndex: Int) -> UTF32Char
```

## Discussion

The typesetter calls this method before hyphenating. A subclass can override this method to return a different hyphen glyph.

---

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)