FontStyle


Purpose: This node is one of the eleven geometry and appearance subgroup Nodes in the Property node group. It is used to define the current font style to be used for all subsequent AsciiText.
Syntax
FAMILY
SERIF		Serif style (such as TimesRoman)
SANS 		Sans Serif Style (such as Helvetica)
TYPEWRITER 	Fixed pitch style (such as Courier)
STYLE
NONE 		No modifications to family
BOLD 		Embolden family
ITALIC 		Italicize or Slant family
FILE FORMAT/DEFAULTS
FontStyle {
	size	10	# SFFloat
	family	SERIF	# SFEnum
	style	NONE	# SFBitMask
}
Explanation

Keep in mind that only the font attributes are defined. The specific browser you are using is expected to assign specific fonts to the various attribute combinations. As explained earlier, the size field specifies the height (in object space units) of glyphs rendered. Again, it also determines the vertical spacing of any adjacent lines of text

Example Use

The following code fragment is from Allnodes.wrl.

FontStyle {
	Size	10
	family	SERIF
	style	NONE
}
See Also

AsciiText