1SoFont(3IV)() SoFont(3IV)()
2
3
4
6 SoFont — node that defines font type and size for text
7
9 SoBase > SoFieldContainer > SoNode > SoFont
10
12 #include <Inventor/nodes/SoFont.h>
13
14 Fields from class SoFont:
15
16 SoSFName name
17 SoSFFloat size
18
19 Methods from class SoFont:
20
21 SoFont()
22 static SoType getClassTypeId()
23
24 Methods from class SoNode:
25
26 void setOverride(SbBool state)
27 SbBool isOverride() const
28 SoNode * copy(SbBool copyConnections = FALSE) const
29 virtual SbBool affectsState() const
30 static SoNode * getByName(const SbName &name)
31 static int getByName(const SbName &name, SoNodeList &list)
32
33 Methods from class SoFieldContainer:
34
35 void setToDefaults()
36 SbBool hasDefaultValues() const
37 SbBool fieldsAreEqual(const SoFieldContainer *fc) const
38 void copyFieldValues(const SoFieldContainer *fc, SbBool
39 copyConnections = FALSE)
40 SbBool set(const char *fieldDataString)
41 void get(SbString &fieldDataString)
42 virtual int getFields(SoFieldList &resultList) const
43 virtual SoField * getField(const SbName &fieldName) const
44 SbBool getFieldName(const SoField *field, SbName &fieldName)
45 const
46 SbBool isNotifyEnabled() const
47 SbBool enableNotify(SbBool flag)
48
49 Methods from class SoBase:
50
51 void ref()
52 void unref() const
53 void unrefNoDelete() const
54 void touch()
55 virtual SoType getTypeId() const
56 SbBool isOfType(SoType type) const
57 virtual void setName(const SbName &name)
58 virtual SbName getName() const
59
60
62 This node defines the current font type and point size for all subse‐
63 quent text shapes in the scene graph. Fonts are specified with Post‐
64 Script names, except for the default font. The default font is called
65 "defaultFont" and is the standard SGI graphics font for 2D text.
66 "Utopia" is the standard Inventor font for 3D text.
67
69 SoSFName name
70 This field defines the font name as a PostScript name. For example,
71 Times Roman would be specified as Times-Roman. Multiple fonts can be
72 specified by separating the font names with semicolons. When multi‐
73 ple fonts are specified, the first font in the list that contains a
74 given character is used to render that character.
75
76 SoSFFloat size
77 This field defines the font size. The value is in points for 2D text
78 and is in the current units for 3D text.
79
80
82 SoFont()
83 Creates a font node with default settings.
84
85 static SoType getClassTypeId()
86 Returns type identifier for this class.
87
88
90 SoGLRenderAction, SoCallbackAction, SoGetBoundingBoxAction, SoRayPick‐
91 Action
92 Sets the font name and size in the current traversal state.
93
94
96 Font {
97 name "defaultFont"
98 size 10
99 }
100
102 SoText2, SoText3
103
104
105
106
107 SoFont(3IV)()