logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SoFontStyle — simple 3D text shape node

Action Behavior

SoGLRenderAction,SoCallbackAction,SoGetBoundingBoxAction,SoRayPickAction
          Sets the font family and style in the current traversal state.

Description

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

Fields

SoSFEnumfamily
          Defines the family of font to use.

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

File Format/Defaults

FontStyle{name"defaultFont"size10familySERIFstyleNONE}

Inherits From

       SoBase > SoFieldContainer > SoNode > SoFont > SoFontStyle

Methods

SoFontStyle()
          Creates a font style node with default settings.

     staticSoTypegetClassTypeId()
          Returns type identifier for this class.

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

Name

       SoFontStyle — simple 3D text shape node

See Also

SoAsciiText,SoFont,SoText2,SoText3SoFontStyle(3IV)()

Synopsis

#include<Inventor/nodes/SoFontStyle.h>enumFamily{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)
     }enumStyle{SoFontStyle::NONE    No modification to Family
          SoFontStyle::BOLD    Embolden Family
          SoFontStyle::ITALIC  Italicize or Slant Family
     }

          Fields from class SoFontStyle:

     SoSFEnumfamilySoSFBitMaskstyle

          Fields from class SoFont:

     SoSFNamenameSoSFFloatsize

          Methods from class SoFontStyle:

                         SoFontStyle()staticSoTypegetClassTypeId()SbStringgetFontName()

          Methods from class SoNode:

     voidsetOverride(SbBoolstate)SbBoolisOverride()constSoNode*copy(SbBoolcopyConnections=FALSE)constvirtualSbBoolaffectsState()conststaticSoNode*getByName(constSbName&name)staticintgetByName(constSbName&name,SoNodeList&list)

          Methods from class SoFieldContainer:

     voidsetToDefaults()SbBoolhasDefaultValues()constSbBoolfieldsAreEqual(constSoFieldContainer*fc)constvoidcopyFieldValues(constSoFieldContainer*fc,SbBoolcopyConnections=FALSE)SbBoolset(constchar*fieldDataString)voidget(SbString&fieldDataString)virtualintgetFields(SoFieldList&resultList)constvirtualSoField*getField(constSbName&fieldName)constSbBoolgetFieldName(constSoField*field,SbName&fieldName)constSbBoolisNotifyEnabled()constSbBoolenableNotify(SbBoolflag)

          Methods from class SoBase:

     voidref()voidunref()constvoidunrefNoDelete()constvoidtouch()virtualSoTypegetTypeId()constSbBoolisOfType(SoTypetype)constvirtualvoidsetName(constSbName&name)virtualSbNamegetName()const

See Also