Contents

paragraphSpacing(afterGlyphAt:withProposedLineFragmentRect:)

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

Declaration

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 property of NSParagraphStyle. You can set the value of this property in an NSMutableParagraphStyle object.

See Also

Getting Spacing Information