NAME
SoFontStyle – simple 3D text shape node
INHERITS FROM
SoFontStyle
SYNOPSIS
#include <Inventor/nodes/SoFontStyle.h>
enum Family {
SoFontStyle::SERIF Use Serif style (such as Times-Roman)
SoFontStyle::SANS Use Sans Serif style (such as Helvetica)
SoFontStyle::TYPEWRITER Use fixed pitch style (such as Courier)
}
enum Style {
SoFontStyle::NONE No modification to Family
SoFontStyle::BOLD Embolden Family
SoFontStyle::ITALIC Italicize or Slant Family
}
Fields from class SoFontStyle:
Methods from class SoFontStyle:
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 family and style for all subsequent text shapes in the scene graph.
FIELDS
SoSFEnum family
Defines the family of font to use.
SoSFBitMask style
Defines style modifications to the chosen font, either bold or italic or no change.
METHODS
SoFontStyle()
Creates a font style node with default settings.
static SoType getClassTypeId()
Returns type identifier for this class.
SbString getFontName()
Returns the font name used by this node based on the settings of family and style.
ACTION BEHAVIOR
Sets the font family and style 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)