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
Notice any errors or typos? Please let us know. Please feel free to edit src/type/textCore.js and open a pull request!
Related References
textToContours
Returns an array of arrays of points outlining a string of text written using the font.
textToModel
Converts text into a 3D model that can be rendered in WebGL mode.
textToPaths
Returns a flat array of path commands that describe the outlines of a string of text.
textToPoints
Returns an array of points outlining a string of text written using the font.