FontStyle

Element Information

Model

Attributes

QName Type Fixed Default Use Inheritable Annotation
DEF xs:ID optional
USE xs:IDREF optional
class xs:NMTOKENS optional
containerField xs:NMTOKEN fontStyle optional
family MFString "SERIF" optional
horizontal SFBool true optional
justify justifyValues "BEGIN" optional
language SFString optional
leftToRight SFBool true optional
size restriction of SFFloat 1.0 optional
spacing restriction of SFFloat 1.0 optional
style fontStyleValues PLAIN optional
topToBottom SFBool true optional

Used By

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="xs:NMTOKEN" fixed="Text"/>
      <xs:attribute name="componentLevel" type="xs:positiveInteger" fixed="1"/>
    </xs:appinfo>
    <xs:documentation source="http://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="justifyValues" 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="fontStyleValues" 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>

Sample