---
title: hyphenationFactor
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nslayoutmanager/hyphenationfactor
---

# hyphenationFactor

The threshold controlling when hyphenation is done.

## Declaration

```swift
var hyphenationFactor: Float { get set }
```

## Discussion

Discussion Whenever (width of the real contents of the line) / (the line fragment width) is below factor, hyphenation is attempted when laying out the line. Hyphenation slows down text layout and increases memory usage, so it should be used sparingly.

## See Also

### Properties

- [usesScreenFonts](appkit/nslayoutmanager/usesscreenfonts.md)
