pub static textLeading: TextLeadingInternalTypeExpand description
Sets/gets the spacing, in pixels, between lines of text. This setting will be used in all subsequent calls to the text() function.
Examples
let lines = 'L1\nL2\nL3'; // "\n" is a "new line" character
textSize(12);
textLeading(10);
text(lines, 10, 25);
textLeading(20);
text(lines, 40, 25);
textLeading(30);
text(lines, 70, 25);Overloads
leading the size in pixels for spacing between lines