SoFontStyle Class Reference
[Properties]

VSG extension Defines font family and style for text. More...

#include <Inventor/nodes/SoFontStyle.h>

Inheritance diagram for SoFontStyle:
SoFont SoNode SoFieldContainer SoBase SoRefCounter SoTypedObject

List of all members.

Public Types

enum  Family {
  SERIF,
  SANS,
  TYPEWRITER
}
enum  Style {
  NONE = 0,
  BOLD = 0x1,
  ITALIC = 0x2
}

Public Member Functions

virtual SoType getTypeId () const
 SoFontStyle ()
SbString getFontName ()

Static Public Member Functions

static SoType getClassTypeId ()

Public Attributes

SoSFEnum family
SoSFBitMask style

Detailed Description

VSG extension Defines font family and style for text.

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

Note: The "name" field inherited from SoFont is ignored by SoFontStyle. This node maps font family and style to a specific predefined font, according to the OS in use. Use the getFontName() method to get the actual font name that will be used.

On Windows, the font families are mapped as follows:

SERIF Times New Roman
SANS Arial
TYPEWRITER Courier New

FILE FORMAT/DEFAULT

ACTION BEHAVIOR

SEE ALSO

SoAsciiText, SoFont, SoText2, SoText3


Member Enumeration Documentation

Font style family.

Enumerator:
SERIF 

Use Serif style (such as Times-Roman).

SANS 

Use Sans Serif style (such as Helvetica).

TYPEWRITER 

Use fixed pitch style (such as Courier).

Enumerator:
NONE 

No modification to Family.

BOLD 

Embolden Family.

ITALIC 

Italicize or slant Family.


Constructor & Destructor Documentation

SoFontStyle::SoFontStyle (  ) 

Creates a font style node with default settings.


Member Function Documentation

static SoType SoFontStyle::getClassTypeId (  )  [static]

Returns the type identifier for this class.

Reimplemented from SoFont.

SbString SoFontStyle::getFontName (  ) 

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

virtual SoType SoFontStyle::getTypeId (  )  const [virtual]

Returns the type identifier for this specific instance.

Reimplemented from SoFont.


Member Data Documentation

Specifies the family of font to use (which determines the font name according to table above).

Use enum Family. Default is SERIF.

Specifies style of the chosen font.

Use enum Style. Default is NONE.


The documentation for this class was generated from the following file:

Open Inventor Toolkit reference manual, generated on 15 Mar 2023
Copyright © Thermo Fisher Scientific All rights reserved.
http://www.openinventor.com/