29 #ifndef __X3DFONTSTYLENODE_H__
30 #define __X3DFONTSTYLENODE_H__
126 Vec3f stringDimensions(
const std::string& text,
127 Alignment alignment );
135 Vec3f stringDimensions(
const std::vector< std::string >& text,
137 const std::vector< H3DFloat >&
length =
138 std::vector< H3DFloat >() );
143 virtual std::string defaultXMLContainerField() {
Header file for X3DNode, X3D scene-graph node.
This abstract node type is the base node type for all FontStyle nodes.
Definition: X3DFontStyleNode.h:41
virtual Justification getMinorJustification()
Gets the justification of the text in the minor alignment direction.
Definition: X3DFontStyleNode.h:101
virtual bool isTopToBottom()
Returns true if the text should be rendered from top to bottom, false otherwise.
Definition: X3DFontStyleNode.h:74
virtual H3DFloat getSpacing()
Returns the spacing between lines of text.
Definition: X3DFontStyleNode.h:86
virtual H3DFloat descender()
Returns how many metres in the the negative y-direction from the origin the characters of this font u...
Definition: X3DFontStyleNode.h:121
bool fonts_built
True if buildFonts has been called.
Definition: X3DFontStyleNode.h:149
virtual void buildFonts()
Build Character instances for all characters that will be allowed for use by this font node.
Definition: X3DFontStyleNode.h:65
virtual H3DFloat ascender()
Returns how many metres in the the positive y-direction from the origin the characters of this font u...
Definition: X3DFontStyleNode.h:117
bool fontsBuilt()
Returns true if buildFonts has been called, false otherwise.
Definition: X3DFontStyleNode.h:68
virtual bool isLeftToRight()
Returns true if the text should be rendered from left to right, false otherwise.
Definition: X3DFontStyleNode.h:80
virtual Vec3f charDimensions(unsigned char)
Get the dimensions in metres of the character given when rendered with this font.
Definition: X3DFontStyleNode.h:113
Justification
Enumeration for the different justification values allowed.
Definition: X3DFontStyleNode.h:51
virtual Justification getMajorJustification()
Gets the justification of the text in the major alignment direction.
Definition: X3DFontStyleNode.h:96
virtual Alignment getAlignment()
Gets the alignment of the text.
Definition: X3DFontStyleNode.h:91
virtual void renderChar(unsigned char)
Render the given character with this font.
Definition: X3DFontStyleNode.h:106
Alignment
Enumeration of the alignments allowed for text.
Definition: X3DFontStyleNode.h:45
virtual void renderHorizontalLine(const std::string &)
Render the given string with this font from left to right horizontally.
Definition: X3DFontStyleNode.h:109
This abstract node type is the base type for all nodes in the X3D system.
Definition: X3DNode.h:65
H3D API namespace.
Definition: Anchor.h:38