| 1 |
NAME SoFont "" "" { node that defines font type and size for text } |
| 2 |
|
| 3 |
INCLUDE nodes/SoFont.h |
| 4 |
|
| 5 |
DESC { |
| 6 |
This node defines the current font type and point size for all |
| 7 |
subsequent text shapes in the scene graph. Fonts are specified with |
| 8 |
PostScript names, except for the default font. The default font is |
| 9 |
called \k"defaultFont"\. and is the standard SGI graphics font for 2D |
| 10 |
text. \k"Utopia"\. is the standard Inventor font for 3D text. |
| 11 |
} |
| 12 |
|
| 13 |
FIELD name { |
| 14 |
This field defines the font name as a PostScript name. For example, |
| 15 |
Times Roman would be specified as \kTimes-Roman\.. Multiple fonts |
| 16 |
can be specified by separating the font names with semicolons. When |
| 17 |
multiple fonts are specified, the first font in the list that contains a |
| 18 |
given character is used to render that character. |
| 19 |
} |
| 20 |
|
| 21 |
FIELD size { |
| 22 |
This field defines the font size. The value is in points for |
| 23 |
2D text and is in the current units for 3D text. |
| 24 |
} |
| 25 |
|
| 26 |
METHOD "" SoFont() { |
| 27 |
Creates a font node with default settings. |
| 28 |
} |
| 29 |
|
| 30 |
METHOD "" static SoType getClassTypeId() { |
| 31 |
Returns type identifier for this class. |
| 32 |
} |
| 33 |
|
| 34 |
ACTION SoGLRenderAction, SoCallbackAction, SoGetBoundingBoxAction, |
| 35 |
SoRayPickAction { |
| 36 |
Sets the font name and size in the current traversal state. |
| 37 |
} |
| 38 |
|
| 39 |
ALSO { SoText2, SoText3 } |