SoFontStyle(3IV)

SoFontStyle (SoFontStyle) - simple 3D text shape node

As shipped in IRIX 6.5.22. Added in IRIX 6.5.22.

NAME
     SoFontStyle (SoFontStyle) - simple 3D text shape node

INHERITS FROM
     SoBase > SoFieldContainer > SoNode > SoFont > SoFontStyle

SYNOPSIS
     #include <Inventor_c/nodes/SoFontStyle.h>

     enum SoFontStyleFamily {
          SERIF               Use Serif style (such as Times-Roman)
          SANS                Use Sans Serif style (such as Helvetica)
          TYPEWRITER          Use fixed pitch style (such as Courier)
     }

     enum SoFontStyleStyle {
          NONE                No modification to Family
          BOLD                Embolden Family
          ITALIC              Italicize or Slant Family
     }

          Fields from class SoFontStyle:

     SoSFEnum            family
     SoSFBitMask         style

          Fields from class SoFont:

     SoSFName            name
     SoSFFloat           size

          Functions from class SoFontStyle:

     SoFontStyle *       SoFontStyleCreate()
     SoType              SoFontStyleGetClassTypeId()
     SbString            SoFontStyleGetFontName(SoFontStyle *this)

          Functions from class SoNode:

     void                SoFontStyleSetOverride(SoFontStyle *this, SbBool
                              state)
     SbBool              SoFontStyleIsOverride(const SoFontStyle *this)
     SoNode *            SoFontStyleCopy(const SoFontStyle *this, SbBool
                              copyConnections = FALSE)
     SbBool              SoFontStyleAffectsState(const SoFontStyle *this)
     SoNode *            SoFontStyleGetByName(const char *name)
     int                 SoFontStyleGetByNameList(const char *name, SoNodeList
                              *list)

          Functions from class SoFieldContainer:

     void                SoFontStyleSetToDflts(SoFontStyle *this)
     SbBool              SoFontStyleHasDfltVals(const SoFontStyle *this)
     SbBool              SoFontStyleFldsAreEq(const SoFontStyle *this, const
                              SoFieldContainer *fc)
     void                SoFontStyleCopyFieldVals(SoFontStyle *this, const
                              SoFieldContainer *fc, SbBool copyConnections =
                              FALSE)
     SbBool              SoFontStyleSet(SoFontStyle *this, const char
                              *fieldDataString)
     void                SoFontStyleGet(SoFontStyle *this, SbString
                              *fieldDataString)
     int                 SoFontStyleGetFields(const SoFontStyle *this,
                              SoFieldList *resultList)
     SoField *           SoFontStyleGetField(const SoFontStyle *this, const
                              char *fieldName)
     SbBool              SoFontStyleGetFieldName(const SoFontStyle *this,
                              const SoField *field, SbName *fieldName)
     SbBool              SoFontStyleIsNotifyEnabled(const SoFontStyle *this)
     SbBool              SoFontStyleEnableNotify(SoFontStyle *this, SbBool
                              flag)

          Functions from class SoBase:

     void                SoFontStyleRef(SoFontStyle *this)
     void                SoFontStyleUnref(const SoFontStyle *this)
     void                SoFontStyleUnrefNoDelete(const SoFontStyle *this)
     void                SoFontStyleTouch(SoFontStyle *this)
     SoType              SoFontStyleGetTypeId(const SoFontStyle *this)
     SbBool              SoFontStyleIsOfType(const SoFontStyle *this, SoType
                              type)
     void                SoFontStyleSetName(SoFontStyle *this, const char
                              *name)
     SbName              SoFontStyleGetName(const SoFontStyle *this)


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.


FUNCTIONS
     SoFontStyle *       SoFontStyleCreate()
          Creates a font style node with default settings.
     SoType              SoFontStyleGetClassTypeId()
          Returns type identifier for this class.

     SbString            SoFontStyleGetFontName(SoFontStyle *this)
          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