instantreality 1.0

fully implemented
Structure type:

GenericFontStyle (Standard name: FontStyle)

The ScreenFontStyle node specifies fonts styles in terms of the characteristics of a particular surface upon which the text is to be rendered. The fields in the ScreenFontStyle node are the same as those in the FontStyle node with a single exception: the size field of the FontStyle node is replaced with a pointSize field.



XML encoding
<GenericFontStyle size='1.0'
Classic encoding
GenericFontStyle {
	size 1.0
	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
SFFloat size SFFloat initializeOnly 1.0 Nominal height (in local coordinate system) of text glyphs Also sets default spacing between adjacent lines of text.
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'.
SFBool horizontal SFBool initializeOnly TRUE Whether text direction is horizontal (true) or vertical (false).
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'.
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]
SFBool leftToRight SFBool initializeOnly TRUE Whether text direction is left-to-right (true) or right-to-left (false).
SFFloat spacing SFFloat initializeOnly 1.0 Adjustment factor for line spacing between adjacent lines of text.
SFString style SFString initializeOnly PLAIN [PLAIN, BOLD, ITALIC, BOLDITALIC] Pick one of four values for text style.
SFBool topToBottom SFBool initializeOnly TRUE Whether text direction is top-to-bottom (true) or bottom-to-top (false).
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
SFNode metadata SFNode inputOutput MetadataObject container for payload metadata inside MetadataSet element