---
title: kCTRunDelegateAttributeName
framework: coretext
role: symbol
role_heading: Global Variable
path: coretext/kctrundelegateattributename
---

# kCTRunDelegateAttributeName

The run-delegate object to apply to an attribute range of the string.

## Declaration

```swift
let kCTRunDelegateAttributeName: CFString
```

## Discussion

Discussion The value must be a CTRunDelegate object. The run delegate controls such typographic traits as glyph ascent, descent, and width. The values returned by the embedded run delegate apply to each glyph resulting from the text in that range. Because an embedded object is only a display-time modification, you should avoid applying this attribute to a range of text with complex behavior, such as text having a change of writing direction or having combining marks. It is thus recommended you apply this attribute to a range containing the single character U+FFFC.

## See Also

### Related Documentation

- [CTRunDelegate](coretext/ctrundelegate.md)

### Constants

- [kCTCharacterShapeAttributeName](coretext/kctcharactershapeattributename.md)
- [kCTFontAttributeName](coretext/kctfontattributename.md)
- [kCTKernAttributeName](coretext/kctkernattributename.md)
- [kCTLigatureAttributeName](coretext/kctligatureattributename.md)
- [kCTForegroundColorAttributeName](coretext/kctforegroundcolorattributename.md)
- [kCTForegroundColorFromContextAttributeName](coretext/kctforegroundcolorfromcontextattributename.md)
- [kCTParagraphStyleAttributeName](coretext/kctparagraphstyleattributename.md)
- [kCTStrokeWidthAttributeName](coretext/kctstrokewidthattributename.md)
- [kCTStrokeColorAttributeName](coretext/kctstrokecolorattributename.md)
- [kCTSuperscriptAttributeName](coretext/kctsuperscriptattributename.md)
- [kCTUnderlineColorAttributeName](coretext/kctunderlinecolorattributename.md)
- [kCTUnderlineStyleAttributeName](coretext/kctunderlinestyleattributename.md)
- [kCTVerticalFormsAttributeName](coretext/kctverticalformsattributename.md)
- [kCTGlyphInfoAttributeName](coretext/kctglyphinfoattributename.md)
- [kCTBaselineOffsetAttributeName](coretext/kctbaselineoffsetattributename.md)
