---
title: "CTFontGetUnderlinePosition(_:)"
framework: coretext
role: symbol
role_heading: Function
path: "coretext/ctfontgetunderlineposition(_:)"
---

# CTFontGetUnderlinePosition(_:)

Returns the scaled underline position of the given font.

## Declaration

```swift
func CTFontGetUnderlinePosition(_ font: CTFont) -> CGFloat
```

## Parameters

- `font`: The font reference.

## Return Value

Return Value The font underline-position metric scaled according to the point size and matrix of the font reference.

## See Also

### Getting Font Metrics

- [CTFontGetAscent(_:)](coretext/ctfontgetascent(_:).md)
- [CTFontGetDescent(_:)](coretext/ctfontgetdescent(_:).md)
- [CTFontGetLeading(_:)](coretext/ctfontgetleading(_:).md)
- [CTFontGetUnitsPerEm(_:)](coretext/ctfontgetunitsperem(_:).md)
- [CTFontGetGlyphCount(_:)](coretext/ctfontgetglyphcount(_:).md)
- [CTFontGetBoundingBox(_:)](coretext/ctfontgetboundingbox(_:).md)
- [CTFontGetUnderlineThickness(_:)](coretext/ctfontgetunderlinethickness(_:).md)
- [CTFontGetSlantAngle(_:)](coretext/ctfontgetslantangle(_:).md)
- [CTFontGetCapHeight(_:)](coretext/ctfontgetcapheight(_:).md)
- [CTFontGetXHeight(_:)](coretext/ctfontgetxheight(_:).md)
