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

SoFont — node that defines font type and size for text

Action Behavior

SoGLRenderAction,SoCallbackAction,SoGetBoundingBoxAction,SoRayPickAction
          Sets the font name and size in the current traversal state.

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

SoSFNamename
          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.

     SoSFFloatsize
          This field defines the font size. The value is in points for 2D text and is in the current  units  for
          3D text.

File Format/Defaults

Font{name"defaultFont"size10}

Inherits From

       SoBase > SoFieldContainer > SoNode > SoFont

Methods

SoFont()
          Creates a font node with default settings.

     staticSoTypegetClassTypeId()
          Returns type identifier for this class.

Name

       SoFont — node that defines font type and size for text

See Also

SoText2,SoText3SoFont(3IV)()

Synopsis

#include<Inventor/nodes/SoFont.h>

          Fields from class SoFont:

     SoSFNamenameSoSFFloatsize

          Methods from class SoFont:

                         SoFont()staticSoTypegetClassTypeId()

          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