Defines font family and style for text. More...
#include <Inventor/nodes/SoFontStyle.h>
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 |
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 |
name | "defaultFont" |
size | 10 |
family | SERIF |
style | NONE |
renderStyle | POLYGON |
SoAsciiText, SoFont, SoText2, SoText3
enum SoFontStyle::Family |
enum SoFontStyle::Style |
SoFontStyle::SoFontStyle | ( | ) |
Creates a font style node with default settings.
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.
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.