SoVRMLFontStyle Class Reference
[VRML97 nodes]

VSG extension Specifies font size, family, style, etc. More...

#include <Inventor/VRMLnodes/SoVRMLFontStyle.h>

Inheritance diagram for SoVRMLFontStyle:
SoVRMLNode SoNode SoFieldContainer SoBase SoRefCounter SoTypedObject

List of all members.

Public Types

enum  Family {
  SERIF,
  SANS,
  TYPEWRITER
}
enum  Style {
  PLAIN = 0,
  BOLD = 0x1,
  ITALIC = 0x2,
  BOLDITALIC = 0x3
}

Public Member Functions

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

Static Public Member Functions

static SoType getClassTypeId ()

Public Attributes

SoSFFloat size
SoMFString family
SoSFString style
SoSFBool horizontal
SoSFBool leftToRight
SoSFBool topToBottom
SoSFString language
SoMFString justify
SoSFFloat spacing

Detailed Description

VSG extension Specifies font size, family, style, etc.

The SoVRMLFontStyle node defines the size, font family, and style of text's font, as well as the direction of the text strings and any specific language rendering techniques that must be used for non-English text. See SoVRMLText node for application of SoVRMLFontStyle.

NOTE: This class does not exist in Open Inventor 10.0 and later.

The size field specifies the height (in object space units) of glyphs rendered and determines the spacing of adjacent lines of text. All subsequent strings advance in Y by -(size * spacing). Only horizontal text is supported in this release.

Font attributes are defined with the family and style fields.

The family field specifies a case-sensitive MFString value that may be "SERIF" (the default) for a serif font such as Times Roman; "SANS" for a sans-serif font such as Helvetica; or "TYPEWRITER" for a fixed-pitch font such as Courier. A family value of empty quotes, "", is identical to "SERIF".

The style field specifies a case-sensitive SFString value that may be "PLAIN" (the default) for default plain type; "BOLD" for boldface type; "ITALIC" for italic type; or "BOLDITALIC" for bold and italic type. A style value of empty quotes, \"\", is identical to "PLAIN".

The horizontal, leftToRight, and topToBottom fields indicate the direction of the text. NOTE: Only horizontal text drawn leftToRight is supported in this release. Characters on each line of text advance in the positive X direction according to their natural advance width. Then each line of characters is advanced in the negative Y direction.

The justify field determines alignment of the above text layout relative to the origin of the object coordinate system. It is an MFString which can contain 2 values. The first value specifies alignment along the major axis and the second value specifies alignment along the minor axis. NOTE: Only the major axis alignment is supported in this release. An empty justify value is equivalent to the default values.

The major alignment is along the X axis. The possible values for each enumerant of the justify field are "BEGIN", "MIDDLE", and "END". Each line of text is positioned individually according to the alignment enumerant.

VRML97 SPECIFICATION

FILE FORMAT/DEFAULT

ACTION BEHAVIOR


Open Inventor by FEI reference manual, generated on 19 Aug 2019
Copyright © FEI S.A.S. All rights reserved.
http://www.openinventor.com/