Text
The Text object allows you to add 2D text to a scene.
Properties:
color
provides the method to choose the color of the
Text object in the scene from the palette.
family
indicates whether the text should be in a serif font, a sans-serif font, or a typewriter-like
fixed-width font. The browser chooses a specific font to be used in each of those categories.
horizontal
indicates the direction of the text, whether the text reads horizontally (TRUE)
or vertically (FALSE).
justify
the first value indicates whether to line up the beginnings of the lines of text, to center each line of text,
or to line up the ends. The second value indicates how to align the block of text in the minor
direction.
size
the height of each line of horizontal text, or the width of each line of vertical text.
spacing
determines the distance, in lines, between consecutive lines of text. A value of 1 means
single-spaced text; a value of 2 means double-spaced text.
string
provides the method to specify any number of
string to be displayed. Click the plus sign to change the
string and use the appeared buttons to add or delete the string from the list.
style
indicate whether the text should be in a roman (PLAIN), bold, italic, or bold italic typeface.
transparency
defines the degree of transparency of the
Text object in the range from 0% (clear surface) to 100% (completely opaque surface).
Events:
color
the incoming event of the SFColor type specifies the color of text in
the scene. Repeats an incoming event as an outgoing one.
transparency
the incoming event of the SFFloat type specifies the degree of
transparency of text in the scene. Repeats an incoming event as an outgoing one.