# FontType complexType

Defines the font attributes to use in a style.

## Type Information

Namespace | urn:schemas-microsoft-com:office:spreadsheet
Schema name | XML Spreadsheet 2002

## Elements and Attributes

### Child Elements

None.

### Attributes

Attribute | Type | Required | Description | Possible Values
--- | --- | --- | --- | ---
Bold | TrueFalseType | optional | Specifies whether a font is bold. | 0 1
Color | xsd:string | optional | Specifies the color of a font. | See external namespace.
FontName | Anonymous | optional | Specifies the name of the font. | minLength = 1
Italic | TrueFalseType | optional | Specifies whether a font is italic. | 0 1
Outline | TrueFalseType | optional | Specifies whether a font is rendered as an outline. This property is used only on the Macintosh. | 0 1
Shadow | TrueFalseType | optional | Specifies whether a font is shadowed. This property is used only on the Macintosh. | 0 1
Size | PositiveDoubleType | optional | Specifies the size of a font in points. | minInclusive = 0
StrikeThrough | TrueFalseType | optional | Specifies whether a font is displayed using the strikethrough style. | 0 1
Underline | Anonymous | optional | Specifies whether a font is displayed underlined. | None Single Double SingleAccounting DoubleAccounting
VerticalAlign | Anonymous | optional | Specifies the vertical alignment of a font. | None Subscript Superscript
x:CharSet | external ref | optional | See external namespace. | See external namespace.
x:Family | external ref | optional | See external namespace. | See external namespace.

## Definition

    <xsd:complexType name="FontType" >
      <xsd:attribute form="qualified" name="Bold" type="TrueFalseType" use="optional" default="0">
      </xsd:attribute>
      <xsd:attribute form="qualified" name="Color" type="xsd:string" use="optional" default="Automatic">
      </xsd:attribute>
      <xsd:attribute form="qualified" name="FontName" use="optional" default="Arial">
        <xsd:simpleType>
          <xsd:restriction base="xsd:string">
            <xsd:minLength value="1" />
          </xsd:restriction>
        </xsd:simpleType>
      </xsd:attribute>
      <xsd:attribute form="qualified" name="Italic" type="TrueFalseType" use="optional" default="0">
      </xsd:attribute>
      <xsd:attribute form="qualified" name="Outline" type="TrueFalseType" use="optional" default="0">
      </xsd:attribute>
      <xsd:attribute form="qualified" name="Shadow" type="TrueFalseType" use="optional" default="0">
      </xsd:attribute>
      <xsd:attribute form="qualified" name="Size" type="PositiveDoubleType" use="optional" default="10">
      </xsd:attribute>
      <xsd:attribute form="qualified" name="StrikeThrough" type="TrueFalseType" use="optional" default="0">
      </xsd:attribute>
      <xsd:attribute form="qualified" name="Underline" use="optional" default="None">
        <xsd:simpleType>
          <xsd:restriction base="xsd:string">
            <xsd:enumeration value="None" />
            <xsd:enumeration value="Single" />
            <xsd:enumeration value="Double" />
            <xsd:enumeration value="SingleAccounting" />
            <xsd:enumeration value="DoubleAccounting" />
          </xsd:restriction>
        </xsd:simpleType>
      </xsd:attribute>
      <xsd:attribute form="qualified" name="VerticalAlign" use="optional" default="None">
        <xsd:simpleType>
          <xsd:restriction base="xsd:string">
            <xsd:enumeration value="None" />
            <xsd:enumeration value="Subscript" />
            <xsd:enumeration value="Superscript" />
          </xsd:restriction>
        </xsd:simpleType>
      </xsd:attribute>
      <xsd:attribute ref="x:CharSet" use="optional" />
      <xsd:attribute ref="x:Family" use="optional" />
    </xsd:complexType>

©2003-2004 Microsoft Corporation. All rights reserved. Permission to copy, display and distribute this document is available at: http://msdn.microsoft.com/library/en-us/odcXMLRef/html/odcXMLRefLegalNotice.asp