Returns the number of points of space—added before a paragraph—that is in effect before the specified glyph.
SDK
- macOS 10.4+
Framework
- App
Kit
Declaration
Parameters
glyphIndex
The index of the glyph in question.
rect
The line fragment rectangle of the first line in the paragraph.
Return Value
The number of points of space—added before a paragraph—that is in effect before the glyph specified by glyph
.
Discussion
The typesetter adds the number of points specified in the return value to the top of the line fragment rectangle specified by rect
(but not to the used line fragment rectangle for that line). Paragraph spacing added before a paragraph correlates to the value returned by the paragraph
method of NSParagraph
, which you can set using the paragraph
method of NSMutable
.