---
title: characterShapeAttributeName
framework: foundation
role: symbol
role_heading: Type Property
path: foundation/nsattributedstring/key/charactershapeattributename
---

# characterShapeAttributeName

The character shape attribute.

## Declaration

```swift
static let characterShapeAttributeName: NSAttributedString.Key
```

## Discussion

Discussion An integer value. The value is interpreted as Apple Type Services kCharacterShapeType selector + 1. The character shape feature type (kCharacterShapeType) is used when a single font contains different appearances for the same character shape, and these shapes are not traditionally treated as swashes. It is needed for languages such as Chinese that have both traditional and simplified character sets. The default value is 0 (disable). 1 is kTraditionalCharactersSelector, and so on. Refer to <ATS/SFNTLayoutTypes.h> and Font Features in ATSUI Programming Guide for additional information.

## See Also

### Deprecated Keys

- [expansion](foundation/nsattributedstring/key/expansion.md)
- [obliqueness](foundation/nsattributedstring/key/obliqueness.md)
- [verticalGlyphForm](foundation/nsattributedstring/key/verticalglyphform.md)
- [usesScreenFontsDocumentAttribute](foundation/nsattributedstring/key/usesscreenfontsdocumentattribute.md)
