instantreality 1.0

fully implemented
Structure type:

FontStyle (alias: GenericFontStyle)

FontStyle defines the size, family, and style used for Text nodes. Hint: first add a Text node as parent.



XML encoding
<FontStyle family=''
Classic encoding
FontStyle {
	family [""]
	horizontal TRUE
	justify [""]
	language ""
	leftToRight TRUE
	spacing 1.0
	style "PLAIN"
	topToBottom TRUE
	logFeature [""]


Filter: X3D only | Avalon only | All
id Name DataType PartType Default ValueType Description
MFString family MFString initializeOnly Sequence of font family names in preference order - browsers use first supported family. Supported values include "SERIF", "SANS", and "TYPEWRITER". Hint: SERIF and SANS are variable-width fonts (for example, Roman and Arial). Hint: TYPEWRITER is a fixed-width font (for example, Courier). Hint: Strings can have multiple values, so separate 'each string' 'by' 'quote marks'.
MFString justify MFString initializeOnly [FIRST, BEGIN, MIDDLE, END] Two string values are provided for major and minor axis alignment. Example: "MIDDLE" "MIDDLE". Hint: Strings can have multiple values, so separate 'each string' 'by' 'quote marks'.
MFString logFeature MFString inputOutput state, child, parent, route, eventIn, eventOut controls the logging of changes, state: log state changes (e.g. live), child: log child add/remove, parent: log parent add/remove, route: log route add/remove; eventIn: log receiving of events, eventOut: log sending of events: guiView, runtime system should create node-view, guiEdit: runtime system should create node-editeverything: log everything
SFBool horizontal SFBool initializeOnly TRUE Whether text direction is horizontal (true) or vertical (false).
SFBool leftToRight SFBool initializeOnly TRUE Whether text direction is left-to-right (true) or right-to-left (false).
SFBool topToBottom SFBool initializeOnly TRUE Whether text direction is top-to-bottom (true) or bottom-to-top (false).
SFFloat spacing SFFloat initializeOnly 1.0 Adjustment factor for line spacing between adjacent lines of text.
SFNode metadata SFNode inputOutput MetadataObject container for payload metadata inside MetadataSet element
SFString language SFString initializeOnly Language codes consist of a primary code and a (possibly empty) series of subcodes. [ language-code = primary-code ( '-' subcode )* ] Two-letter primary codes are reserved for language abbreviations. [RFC1766,] Two-letter primary codes include en (English), fr (French), de (German), it (Italian), nl (Dutch), el (Greek), es (Spanish), pt (Portuguese), ar (Arabic), he (Hebrew), ru (Russian), zh (Chinese), ja (Japanese), hi (Hindi), ur (Urdu), and sa (Sanskrit). Any two-letter subcode is understood to be a country code. [ISO3166 or]
SFString style SFString initializeOnly PLAIN [PLAIN, BOLD, ITALIC, BOLDITALIC] Pick one of four values for text style.