SoFont¶
- InventorModule¶
genre
author
package
definition
Purpose¶
The node SoFont defines the current font type and point size for all subsequent text shapes in the scene graph. Fonts are specified using PostScript names, except for the default font. The default font, called defaultFont, is the standard SGI graphics font for 2D text, while “Utopia” is the standard Open Inventor font for 3D text.
Windows¶
Default Panel¶
Output Fields¶
self¶
- name: self, type: SoNode¶
Parameter Fields¶
Visible Fields¶
Name¶
- name: name, type: String, default: "defaultFont"¶
Sets the font name as a PostScript name.
For example, Times Roman is specified as
Times-Roman.Multiple fonts can be specified by separating the font names with semicolons. When multiple fonts are provided, the first font in the list that contains a given character is used to render that character.
Size¶
- name: size, type: Float, default: 10¶
Sets the font size.
The value is expressed in points for 2D text and in the current units for 3D text.