---
title: underlinePosition
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsfont/underlineposition
---

# underlinePosition

The baseline offset to use when drawing underlines with the font.

## Declaration

```swift
var underlinePosition: CGFloat { get }
```

## Discussion

Discussion The value in this property is determined by the font’s AFM file. The value is usually negative, which must be considered when drawing in a flipped coordinate system.

## See Also

### Getting Underline and Italic Metrics

- [italicAngle](appkit/nsfont/italicangle.md)
- [underlineThickness](appkit/nsfont/underlinethickness.md)
