man SoFont () - node that defines font type and size for text

NAME

SoFont - node that defines font type and size for text

INHERITS FROM

SoBase > SoFieldContainer > SoNode > SoFont

SYNOPSIS

#include <Inventor/nodes/SoFont.h> Fields from class SoFont: c } c } name

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

c } c } getClassTypeId() 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 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

c } c } 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. c } c } 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

c } c } SoFont()

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

Returns type identifier for this class.

ACTION BEHAVIOR

SoGLRenderAction, SoCallbackAction, SoGetBoundingBoxAction, SoRayPickAction

Sets the font name and size in the current traversal state.

FILE FORMAT/DEFAULTS

Font {
name	"defaultFont"
size	10
}

SEE ALSO

SoText2, SoText3