---
title: NSStrokeWidthAttributeName
framework: uikit
role: symbol
role_heading: Global Variable
path: uikit/nsstrokewidthattributename
---

# NSStrokeWidthAttributeName

The width of the stroke.

## Declaration

```occ
extern NSAttributedStringKey const NSStrokeWidthAttributeName;
```

## Overview

Overview The value of this attribute is an NSNumber object containing a floating-point value. This value represents the amount to change the stroke width and is specified as a percentage of the font point size. Specify 0 (the default) for no additional changes. Specify positive values to change the stroke width alone. Specify negative values to stroke and fill the text. For example, a typical value for outlined text would be 3.0.

## See Also

### Getting rendering attribute keys

- [NSBackgroundColorAttributeName](uikit/nsbackgroundcolorattributename.md)
- [NSBaselineOffsetAttributeName](uikit/nsbaselineoffsetattributename.md)
- [NSFontAttributeName](uikit/nsfontattributename.md)
- [NSForegroundColorAttributeName](uikit/nsforegroundcolorattributename.md)
- [NSKernAttributeName](uikit/nskernattributename.md)
- [NSLigatureAttributeName](uikit/nsligatureattributename.md)
- [NSParagraphStyleAttributeName](uikit/nsparagraphstyleattributename.md)
- [NSStrikethroughColorAttributeName](uikit/nsstrikethroughcolorattributename.md)
- [NSStrikethroughStyleAttributeName](uikit/nsstrikethroughstyleattributename.md)
- [NSStrokeColorAttributeName](uikit/nsstrokecolorattributename.md)
- [NSTrackingAttributeName](uikit/nstrackingattributename.md)
- [NSUnderlineColorAttributeName](uikit/nsunderlinecolorattributename.md)
- [NSUnderlineStyleAttributeName](uikit/nsunderlinestyleattributename.md)
- [NSWritingDirectionAttributeName](uikit/nswritingdirectionattributename.md)
