---
title: kCTStrokeWidthAttributeName
framework: coretext
role: symbol
role_heading: Global Variable
path: coretext/kctstrokewidthattributename
---

# kCTStrokeWidthAttributeName

The stroke width.

## Declaration

```swift
let kCTStrokeWidthAttributeName: CFString
```

## Discussion

Discussion Value must be a CFNumber object. Default value is 0.0, or no stroke. This attribute, interpreted as a percentage of font point size, controls the text drawing mode: positive values effect drawing with stroke only; negative values are for stroke and fill. A typical value for outlined text is 3.0.

## See Also

### 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)
- [kCTStrokeColorAttributeName](coretext/kctstrokecolorattributename.md)
- [kCTSuperscriptAttributeName](coretext/kctsuperscriptattributename.md)
- [kCTUnderlineColorAttributeName](coretext/kctunderlinecolorattributename.md)
- [kCTUnderlineStyleAttributeName](coretext/kctunderlinestyleattributename.md)
- [kCTVerticalFormsAttributeName](coretext/kctverticalformsattributename.md)
- [kCTGlyphInfoAttributeName](coretext/kctglyphinfoattributename.md)
- [kCTRunDelegateAttributeName](coretext/kctrundelegateattributename.md)
- [kCTBaselineOffsetAttributeName](coretext/kctbaselineoffsetattributename.md)
