<!--
{
  "documentType" : "article",
  "framework" : "CoreText",
  "identifier" : "/documentation/CoreText/string-attribute-name-constants",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "String Attribute Name Constants"
}
-->

# String Attribute Name Constants

These constants represent string attribute names.

## Topics

### Constants

[`let kCTCharacterShapeAttributeName: CFString`](/documentation/CoreText/kCTCharacterShapeAttributeName)

Controls glyph selection.

[`let kCTFontAttributeName: CFString`](/documentation/CoreText/kCTFontAttributeName)

The font of the text to which this attribute applies.

[`let kCTKernAttributeName: CFString`](/documentation/CoreText/kCTKernAttributeName)

The amount to kern the next character.

[`let kCTLigatureAttributeName: CFString`](/documentation/CoreText/kCTLigatureAttributeName)

The type of ligatures to use.

[`let kCTForegroundColorAttributeName: CFString`](/documentation/CoreText/kCTForegroundColorAttributeName)

The foreground color of the text to which this attribute applies.

[`let kCTForegroundColorFromContextAttributeName: CFString`](/documentation/CoreText/kCTForegroundColorFromContextAttributeName)

Sets a foreground color using the context’s fill color.

[`let kCTParagraphStyleAttributeName: CFString`](/documentation/CoreText/kCTParagraphStyleAttributeName)

The paragraph style of the text to which this attribute applies.

[`let kCTStrokeWidthAttributeName: CFString`](/documentation/CoreText/kCTStrokeWidthAttributeName)

The stroke width.

[`let kCTStrokeColorAttributeName: CFString`](/documentation/CoreText/kCTStrokeColorAttributeName)

The stroke color.

[`let kCTSuperscriptAttributeName: CFString`](/documentation/CoreText/kCTSuperscriptAttributeName)

Controls vertical text positioning.

[`let kCTUnderlineColorAttributeName: CFString`](/documentation/CoreText/kCTUnderlineColorAttributeName)

The underline color.

[`let kCTUnderlineStyleAttributeName: CFString`](/documentation/CoreText/kCTUnderlineStyleAttributeName)

The style of underlining, to be applied at render time, for the text to which this attribute applies.

[`let kCTVerticalFormsAttributeName: CFString`](/documentation/CoreText/kCTVerticalFormsAttributeName)

The orientation of the glyphs in the text to which this attribute applies.

[`let kCTGlyphInfoAttributeName: CFString`](/documentation/CoreText/kCTGlyphInfoAttributeName)

The glyph info object to apply to the text associated with this attribute.

[`let kCTRunDelegateAttributeName: CFString`](/documentation/CoreText/kCTRunDelegateAttributeName)

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

[`let kCTBaselineOffsetAttributeName: CFString`](/documentation/CoreText/kCTBaselineOffsetAttributeName)

Vertical offset for text position.

[`let kCTTrackingAttributeName: CFString`](/documentation/CoreText/kCTTrackingAttributeName)

The tracking for the text.



---

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)