<!--
{
  "availability" : [
    "macOS: 12.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSTextLayoutFragment/renderingSurfaceBounds",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSTextLayoutFragment(py)renderingSurfaceBounds"
  },
  "title" : "renderingSurfaceBounds"
}
-->

# renderingSurfaceBounds

The bounds defining the area required for rendering the contents.

```
var renderingSurfaceBounds: CGRect { get }
```

## Discussion

The coordinate system is vertically flipped from the `layoutFragmentFrame` origin ({`0`,`0`} is at the upper-left corner). The size should be larger than `layoutFragmentFrame.size`. The origin could be in the negative coordinate since the rendering could stretch out of `layoutFragmentFrame`. Only valid when `state` greater than [`NSTextLayoutFragment.State.estimatedUsageBounds`](/documentation/AppKit/NSTextLayoutFragment/State-swift.enum/estimatedUsageBounds).

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)