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

# paragraphSpacing(afterGlyphAt:withProposedLineFragmentRect:)

Returns the paragraph spacing that is in effect after the specified glyph.

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

## Parameters

`glyphIndex`

The index of the glyph in question.

`rect`

The line fragment rectangle of the last line in the paragraph.

## Return Value

The paragraph spacing—that is, the number of points of space added following a paragraph—that is in effect after the glyph specified by `glyphIndex`.

## Discussion

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 returned by the [`paragraphSpacing`](/documentation/AppKit/NSParagraphStyle/paragraphSpacing) method of [`NSParagraphStyle`](/documentation/AppKit/NSParagraphStyle), which you can set using the [`paragraphSpacing`](/documentation/AppKit/NSParagraphStyle/paragraphSpacing) method of [`NSMutableParagraphStyle`](/documentation/AppKit/NSMutableParagraphStyle).

---

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)