<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSATSTypesetter/paragraphSpacing(afterGlyphAt:withProposedLineFragmentRect:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSATSTypesetter(im)paragraphSpacingAfterGlyphAtIndex:withProposedLineFragmentRect:"
  },
  "title" : "paragraphSpacing(afterGlyphAt:withProposedLineFragmentRect:)"
}
-->

# paragraphSpacing(afterGlyphAt:withProposedLineFragmentRect:)

Returns the number of points of space added following a paragraph, in effect after the specified glyph.

```
func paragraphSpacing(afterGlyphAt glyphIndex: Int, withProposedLineFragmentRect rect: NSRect) -> CGFloat
```

## Discussion

The `rect` argument specifies the line fragment rectangle of the last line in the paragraph.

The typesetter adds the number of points specified in the return value to the bottom of the line fragment rectangle specified by `rect` (but not to the used line fragment rectangle for that line). Paragraph spacing added after a paragraph correlates to the value in the [`paragraphSpacing`](/documentation/AppKit/NSParagraphStyle/paragraphSpacing) property of [`NSParagraphStyle`](/documentation/AppKit/NSParagraphStyle). You can set the value of this property in an [`NSMutableParagraphStyle`](/documentation/AppKit/NSMutableParagraphStyle) object.

---

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)