man SoFontStyle () - simple 3D text shape node

NAME

SoFontStyle - simple 3D text shape node

INHERITS FROM

SoBase > SoFieldContainer > SoNode > SoFont > SoFontStyle

SYNOPSIS

#include <Inventor/nodes/SoFontStyle.h> enum Family { c } c } Use Serif style (such as Times-Roman)

c } c } Use Sans Serif style (such as Helvetica)

c } c } Use fixed pitch style (such as Courier)

} enum Style { c } c } No modification to Family

c } c } Embolden Family

c } c } Italicize or Slant Family

} Fields from class SoFontStyle: c } c } family

c } c } style Fields from class SoFont: c } c } name

c } c } size Methods from class SoFontStyle: c } c } SoFontStyle()

c } c } getClassTypeId()

c } c } getFontName() Methods from class SoNode: c } c } setOverride(SbBool state)

c } c } isOverride() const

c } c } copy(SbBool copyConnections = FALSE) const

c } c } affectsState() const

c } c } getByName(const SbName &name)

c } c } getByName(const SbName &name, SoNodeList &list) Methods from class SoFieldContainer: c } c } setToDefaults()

c } c } hasDefaultValues() const

c } c } fieldsAreEqual(const SoFieldContainer *fc) const

c } c } copyFieldValues(const SoFieldContainer *fc, SbBool copyConnections = FALSE)

c } c } set(const char *fieldDataString)

c } c } get(SbString &fieldDataString)

c } c } getFields(SoFieldList &resultList) const

c } c } getField(const SbName &fieldName) const

c } c } getFieldName(const SoField *field, SbName &fieldName) const

c } c } isNotifyEnabled() const

c } c } enableNotify(SbBool flag) Methods from class SoBase: c } c } ref()

c } c } unref() const

c } c } unrefNoDelete() const

c } c } touch()

c } c } getTypeId() const

c } c } isOfType(SoType type) const

c } c } setName(const SbName &name)

c } c } getName() const

DESCRIPTION

This node defines the current font family and style for all subsequent text shapes in the scene graph.

FIELDS

c } c } family

Defines the family of font to use. c } c } style

Defines style modifications to the chosen font, either bold or italic or no change.

METHODS

c } c } SoFontStyle()

Creates a font style node with default settings. c } c } getClassTypeId()

Returns type identifier for this class. c } c } getFontName()

Returns the font name used by this node based on the settings of family and style.

ACTION BEHAVIOR

SoGLRenderAction, SoCallbackAction, SoGetBoundingBoxAction, SoRayPickAction

Sets the font family and style in the current traversal state.

FILE FORMAT/DEFAULTS

FontStyle {
name	"defaultFont"
size	10
family	SERIF
style	NONE
}

SEE ALSO

SoAsciiText, SoFont, SoText2, SoText3