ScreenFontStyle
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.
Inheritance
Code
XML encoding
<ScreenFontStyle pointSize='12.0' family='' horizontal='TRUE' justify='' language='' leftToRight='TRUE' spacing='1.0' style='PLAIN' topToBottom='TRUE' logFeature='' />
Classic encoding
ScreenFontStyle { pointSize 12.0 family [""] horizontal TRUE justify [""] language "" leftToRight TRUE spacing 1.0 style "PLAIN" topToBottom TRUE logFeature [""] }
Interface
Filter: X3D only | Avalon only | All
id | Name | DataType | PartType | Default | ValueType | Description |
---|---|---|---|---|---|---|
pointSize | SFFloat | initializeOnly | 12.0 | The pointSize field specifies the size of text in points. | ||
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'. | |||
horizontal | SFBool | initializeOnly | TRUE | Whether text direction is horizontal (true) or vertical (false). | ||
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'. | ||
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, http://www.ietf.org/rfc/rfc1766.txt] 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 http://www.oasis-open.org/cover/iso639a.html] | |||
leftToRight | SFBool | initializeOnly | TRUE | Whether text direction is left-to-right (true) or right-to-left (false). | ||
spacing | SFFloat | initializeOnly | 1.0 | Adjustment factor for line spacing between adjacent lines of text. | ||
style | SFString | initializeOnly | PLAIN | [PLAIN, BOLD, ITALIC, BOLDITALIC] | Pick one of four values for text style. | |
topToBottom | SFBool | initializeOnly | TRUE | Whether text direction is top-to-bottom (true) or bottom-to-top (false). | ||
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 | ||
metadata | SFNode | inputOutput | MetadataObject | container for payload metadata inside MetadataSet element |