<node3d:text3d>.setLineSpacing

Set spacing between text lines

 

<node3d:text3d>.setLineSpacing(
    spacing    

)

 

spacing

The spacing as a percentage of the character height.


Remarks

Sets the spacing between the lines contained in the text object. The default global line spacing can be specified with the viz.text.line_spacing option. The default value of the option is 0.

Return Value

None

Example

haiku = """
An old silent pond...
A frog jumps into the pond,
splash! Silence again.
"""

# Create text object
text = viz.addText(haiku,parent=viz.ORTHO,fontSize=20,pos=(50,150,0))

# Set spacing to 50% of character height
text.setLineSpacing(0.5)

See also

<node3d:text3d>.getLineSpacing