Reference textLeading()

textLeading()

Sets the spacing between lines of text when text() is called.

Note: Spacing is measured in pixels.

Calling textLeading() without an argument returns the current spacing.

Examples

Syntax

textLeading([leading])

Parameters

leading
Number: The new text leading to apply, in pixels

Returns

Number: If no arguments are provided, the current text leading

Related References