NodeBox

Create visual output with Python programming code
Home Download Reference Tutorial Library Gallery About

pixie.spacing()

Syntax

spacing(x=1.2)

Description

Sets the lineheight or linespacing for a Pixie text paragraph().

Example

pixie = ximport("pixie")
txt  = "Pixie was originally a part of the Aunt Hillary code package,"
txt += "a handwriting that looks different each time, contains mistakes,"
txt += "has wobbly baselines and variable color pressure."
pixie.spacing(1.4)
pixie.paragraph(txt, 100, 100, 200, pt=15)