Vizard 8 » Command Index » Vizard objects » node3d » <node3d:text3d>.font
8.0

<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.

You can specify multiple fallback fonts in case the font is not installed on the system by using the ; separator. The fonts will be searched in the order specified until one is found.

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

# Fallback on Arial if Segoe UI is not found
text.font('Segoe UI ; Arial')

See also

<node3d:text3d>.resolution