<node3d:text3d>.font
This action will set the font of the text object
| <node3d:text3d>.font( | |
| font |
)
font
The filename or name of the font to change to.
Remarks
Vizard will look in the Windows font directory for the specified font. The default font is 'Arial'.
Return Value
None
Example
text = viz.addText('Vizard')
# Change font to 'Times New Roman'
text.font('times.ttf') # Specify font using filename
text.font('Times New Roman') # Specify font using name
See also
<node3d:text3d>.resolution