NAME
SoFont – node that defines font type and size for text
INHERITS FROM
SoFont
SYNOPSIS
#include <Inventor/nodes/SoFont.h>
Fields from class SoFont:
Methods from class SoFont:
static SoType getClassTypeId()
void setOverride(SbBool state)
virtual SbBool affectsState() const
SbBool hasDefaultValues() const
SbBool set(const char *fieldDataString)
SbBool isNotifyEnabled() const
void unrefNoDelete() const
virtual SoType getTypeId() const
virtual void setName(const SbName &name)
virtual SbName getName() const
DESCRIPTION
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.
FIELDS
SoSFName name
This field defines the font name as a PostScript name. 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.
SoSFFloat size
This field defines the font size. The value is in points for 2D text and is in the current units for 3D text.
METHODS
SoFont()
Creates a font node with default settings.
static SoType getClassTypeId()
Returns type identifier for this class.
ACTION BEHAVIOR
Sets the font name and size in the current traversal state.
FILE FORMAT/DEFAULTS
SEE ALSO
Typeset by Felix Ritter (MeVis Research GmbH)
Hyperlinks by Wolfram Esser (method park Software AG)