FontStyle node


Special attributes for Text and WrapText nodes.


SFFloat size 12:
Size is limited by the tree internal Java fonts: small(size < 10), large ( 10 <= size <= 16) and huge (size > 16).

SFString style "":
Text style, default is plain when string is empty. May be one of plain, italic or bolditalic.

MFString justify ["LEFT" "TOP"]:
Text alignment, default is ["LEFT" "TOP"].
First string defines the horizontal alignment, one of LEFT, MIDDLE or RIGHT.
The second string defines the vertical alignment, one of TOP, MIDDLE, BOTTOM, BASELINE.

MFString family ["SYSTEM"]:
Text font, default is SYSTEM. May be one of SHERIF (monospace), SANS (proportional) or SYSTEM. You can use additional families, see "Additional Font" paragraph.



Note:
For each non native font, always configure the same font size (mandatory). It is advised to configure for each non native font the same color in emissiveColor field of Material associated with the Text Node.


The tfd (textual font description) format is the text format of bitmap internal fonts.

You should fill the following values:

The tfd file is automatically generated from a TrueType file. It enable to build your own colored font from a bitmap. Then, you can manage graphisms with a Text node, it's more simple and light. Moreover it keep 100% compatibility with the player.
Example: the Sudoku widget.