Open Inventor Reference
|
Node that defines font type and size for text. More...
#include <Inventor/nodes/SoFont.h>
Public Member Functions | |
SoFont () | |
Creates a font node with default settings. | |
virtual void | doAction (SoAction *action) |
This method performs the "typical" operation of a node for any action. | |
virtual void | GLRender (SoGLRenderAction *action) |
These virtual functions implement all of the actions for nodes, Most of the default implementations do nothing. | |
virtual void | callback (SoCallbackAction *action) |
virtual void | pick (SoPickAction *action) |
virtual void | getBoundingBox (SoGetBoundingBoxAction *action) |
Static Public Member Functions | |
static void | initClass () |
Initializes base node class. | |
Public Attributes | |
Fields | |
SoSFName | name |
This field defines the font name as a PostScript name. | |
SoSFFloat | size |
This field defines the font size. | |
Protected Member Functions | |
virtual | ~SoFont () |
This node defines the current font type and point size for all subsequent text shapes in the scene graph. Fonts are specified with PostScript names, except for the default font. The default font is called "defaultFont"
and is the standard SGI graphics font for 2D text. "Utopia"
is the standard Inventor font for 3D text.
SoFont::SoFont | ( | ) |
virtual SoFont::~SoFont | ( | ) | [protected, virtual] |
virtual void SoFont::callback | ( | SoCallbackAction * | action | ) | [virtual] |
Reimplemented from SoNode.
Reimplemented in SoFontStyle.
virtual void SoFont::doAction | ( | SoAction * | action | ) | [virtual] |
virtual void SoFont::getBoundingBox | ( | SoGetBoundingBoxAction * | action | ) | [virtual] |
Reimplemented from SoNode.
Reimplemented in SoFontStyle.
virtual void SoFont::GLRender | ( | SoGLRenderAction * | action | ) | [virtual] |
Reimplemented from SoNode.
Reimplemented in SoFontStyle.
static void SoFont::initClass | ( | ) | [static] |
Reimplemented from SoNode.
Reimplemented in SoFontStyle.
virtual void SoFont::pick | ( | SoPickAction * | action | ) | [virtual] |
Reimplemented from SoNode.
Reimplemented in SoFontStyle.
For example, Times Roman would be specified as Times-Roman
. Multiple fonts can be specified by separating the font names with semicolons. When multiple fonts are specified, the first font in the list that contains a given character is used to render that character.