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)
textLeading()

Parameters

leading
Number:

spacing between lines of text in units of pixels.

Notice any errors or typos? Please let us know. Please feel free to edit src/typography/attributes.js and open a pull request!

Related References