element FontStyle
diagram x3d-3.1_diagrams/x3d-3.1_p49.png
type extension of X3DFontStyleNode
properties
content complex
children IS MetadataDouble MetadataFloat MetadataInteger MetadataSet MetadataString
used by
groups SceneGraphFragmentContentModel TextChildContentModel
attributes
Name  Type  Use  Default  Fixed  Annotation
DEF  xs:ID        
appinfo

DEF defines a unique ID name for each node, referenceable by other nodes.
USE  xs:IDREF        
appinfo

USE means reuse an already DEF-ed node ID, excluding all child nodes and all other attributes (except for containerField, which can have a different value).
class  xs:NMTOKENS        
appinfo

The class attribute is a space-separated list of classes, reserved for use by Cascading Style Sheets (CSS) and XML stylesheets.
family  MFString    "SERIF"    
horizontal  SFBool    true    
justify  justifyChoices    "BEGIN"    
language  SFString        
leftToRight  SFBool    true    
size  derived by: SFFloat    1.0    
spacing  derived by: SFFloat    1.0    
style  fontStyleChoices    PLAIN    
topToBottom  SFBool    true    
containerField  xs:NMTOKEN    fontStyle    
annotation
appinfo
<!-- optional values, can be extended -->
<xs:attribute name="family" type="fontFamilyValues"/>
<xs:attribute name="componentName" type="componentNameChoices" fixed="Text"/>
<xs:attribute name="componentLevel" type="xs:positiveInteger" fixed="1"/>
source <xs:element name="FontStyle">
 
<xs:annotation>
   
<xs:appinfo>
     
<!-- optional values, can be extended -->
     
<xs:attribute name="family" type="fontFamilyValues"/>
     
<xs:attribute name="componentName" type="componentNameChoices" fixed="Text"/>
     
<xs:attribute name="componentLevel" type="xs:positiveInteger" fixed="1"/>
   
</xs:appinfo>
   
<xs:documentation source="https://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/text.html#FontStyle"/>
 
</xs:annotation>
 
<xs:complexType>
   
<xs:complexContent>
     
<xs:extension base="X3DFontStyleNode">
       
<xs:attribute name="family" type="MFString" default='"SERIF"'/>
       
<xs:attribute name="horizontal" type="SFBool" default="true"/>
       
<xs:attribute name="justify" type="justifyChoices" default='"BEGIN"'/>
       
<xs:attribute name="language" type="SFString"/>
       
<xs:attribute name="leftToRight" type="SFBool" default="true"/>
       
<xs:attribute name="size" default="1.0">
         
<!-- type="SFFloatPositive" -->
         
<xs:simpleType>
           
<xs:restriction base="SFFloat">
             
<xs:minExclusive value="0"/>
           
</xs:restriction>
         
</xs:simpleType>
       
</xs:attribute>
       
<xs:attribute name="spacing" default="1.0">
         
<!-- type="SFFloatNonNegative" -->
         
<xs:simpleType>
           
<xs:restriction base="SFFloat">
             
<xs:minInclusive value="0"/>
           
</xs:restriction>
         
</xs:simpleType>
       
</xs:attribute>
       
<xs:attribute name="style" type="fontStyleChoices" default="PLAIN"/>
       
<xs:attribute name="topToBottom" type="SFBool" default="true"/>
       
<xs:attribute name="containerField" type="xs:NMTOKEN" default="fontStyle"/>
     
</xs:extension>
   
</xs:complexContent>
 
</xs:complexType>
</xs:element>

attribute FontStyle/@family
type MFString
properties
default "SERIF"
source <xs:attribute name="family" type="MFString" default='"SERIF"'/>

attribute FontStyle/@horizontal
type SFBool
properties
default true
source <xs:attribute name="horizontal" type="SFBool" default="true"/>

attribute FontStyle/@justify
type justifyChoices
properties
default "BEGIN"
facets
Kind Value Annotation
enumeration "MIDDLE"
enumeration "MIDDLE" "BEGIN"
enumeration "MIDDLE" "END"
enumeration "MIDDLE" "FIRST"
enumeration "MIDDLE" "MIDDLE"
enumeration "BEGIN"
enumeration "BEGIN" "BEGIN"
enumeration "BEGIN" "END"
enumeration "BEGIN" "FIRST"
enumeration "BEGIN" "MIDDLE"
enumeration "END"
enumeration "END" "BEGIN"
enumeration "END" "END"
enumeration "END" "FIRST"
enumeration "END" "MIDDLE"
enumeration "FIRST"
enumeration "FIRST" "BEGIN"
enumeration "FIRST" "END"
enumeration "FIRST" "FIRST"
enumeration "FIRST" "MIDDLE"
source <xs:attribute name="justify" type="justifyChoices" default='"BEGIN"'/>

attribute FontStyle/@language
type SFString
source <xs:attribute name="language" type="SFString"/>

attribute FontStyle/@leftToRight
type SFBool
properties
default true
source <xs:attribute name="leftToRight" type="SFBool" default="true"/>

attribute FontStyle/@size
type restriction of SFFloat
properties
default 1.0
facets
Kind Value Annotation
minExclusive 0
source <xs:attribute name="size" default="1.0">
 
<!-- type="SFFloatPositive" -->
 
<xs:simpleType>
   
<xs:restriction base="SFFloat">
     
<xs:minExclusive value="0"/>
   
</xs:restriction>
 
</xs:simpleType>
</xs:attribute>

attribute FontStyle/@spacing
type restriction of SFFloat
properties
default 1.0
facets
Kind Value Annotation
minInclusive 0
source <xs:attribute name="spacing" default="1.0">
 
<!-- type="SFFloatNonNegative" -->
 
<xs:simpleType>
   
<xs:restriction base="SFFloat">
     
<xs:minInclusive value="0"/>
   
</xs:restriction>
 
</xs:simpleType>
</xs:attribute>

attribute FontStyle/@style
type fontStyleChoices
properties
default PLAIN
facets
Kind Value Annotation
enumeration PLAIN
appinfo
default plain type
enumeration BOLD
appinfo
boldface type
enumeration ITALIC
appinfo
italic type
enumeration BOLDITALIC
appinfo
bold and italic type
source <xs:attribute name="style" type="fontStyleChoices" default="PLAIN"/>

attribute FontStyle/@topToBottom
type SFBool
properties
default true
source <xs:attribute name="topToBottom" type="SFBool" default="true"/>

attribute FontStyle/@containerField
type xs:NMTOKEN
properties
default fontStyle
source <xs:attribute name="containerField" type="xs:NMTOKEN" default="fontStyle"/>


XML Schema documentation generated by XMLSpy Schema Editor http://www.altova.com/xmlspy