---
title: useOpticalBounds
framework: coretext
role: symbol
role_heading: Type Property
path: coretext/ctlineboundsoptions/useopticalbounds
---

# useOpticalBounds

An option to use optical bounds.

## Declaration

```swift
static var useOpticalBounds: CTLineBoundsOptions { get }
```

## Discussion

Discussion This option overrides useGlyphPathBounds.

## See Also

### Line Bounds Options

- [excludeTypographicLeading](coretext/ctlineboundsoptions/excludetypographicleading.md)
- [excludeTypographicShifts](coretext/ctlineboundsoptions/excludetypographicshifts.md)
- [includeLanguageExtents](coretext/ctlineboundsoptions/includelanguageextents.md)
- [useGlyphPathBounds](coretext/ctlineboundsoptions/useglyphpathbounds.md)
- [useHangingPunctuation](coretext/ctlineboundsoptions/usehangingpunctuation.md)
