FontStyle (alias: GenericFontStyle)
FontStyle defines the size, family, and style used for Text nodes. Hint: first add a Text node as parent.
Inheritance
Code
XML encoding
<FontStyle family='' horizontal='TRUE' justify='' language='' leftToRight='TRUE' spacing='1.0' style='PLAIN' topToBottom='TRUE' logFeature='' />
Classic encoding
FontStyle { 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 |
---|---|---|---|---|---|---|
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'. | |||
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'. | ||
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 | ||
horizontal | SFBool | initializeOnly | TRUE | Whether text direction is horizontal (true) or vertical (false). | ||
leftToRight | SFBool | initializeOnly | TRUE | Whether text direction is left-to-right (true) or right-to-left (false). | ||
topToBottom | SFBool | initializeOnly | TRUE | Whether text direction is top-to-bottom (true) or bottom-to-top (false). | ||
spacing | SFFloat | initializeOnly | 1.0 | Adjustment factor for line spacing between adjacent lines of text. | ||
metadata | SFNode | inputOutput | MetadataObject | container for payload metadata inside MetadataSet element | ||
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] | |||
style | SFString | initializeOnly | PLAIN | [PLAIN, BOLD, ITALIC, BOLDITALIC] | Pick one of four values for text style. |