[Table of Contents] [docx version]

WordprocessingML Reference Material - Table of Contents

rFonts (Run Fonts)

This element specifies the fonts which shall be used to display the text contents of this run. Within a single run, there may be up to four types of content present which shall each be allowed to use a unique font:

ASCII

High ANSI

Complex Script

East Asian

The use of each of these fonts shall be determined by the Unicode character values of the run content, unless manually overridden via use of the cs element (§2.3.2.6).

If this element is not present, the default value is to leave the formatting applied at previous level in the style hierarchy. If this element is never applied in the style hierarchy, then the text shall be displayed in any default font which supports each type of content.

[Example: Consider a single text run with both Arabic and English text, as follows:

English العربية

This content may be expressed in a single WordprocessingML run:

<w:r>
<w:t>English العربية</w:t>
</w:r>

Although it is in the same run, the contents are in different font faces by specifying a different font for ASCII and CS characters in the run:

<w:r>
<w:rPr>
<w:rFonts w:ascii="Courier New" w:cs="Times New Roman" />
</w:rPr>
<w:t>English العربية</w:t>
</w:r>

This text run shall therefore use the Courier New font for all characters in the ASCII range, and shall use the Times New Roman font for all characters in the Complex Script range. end example]

Parent Elements

rPr2.7.8.1); rPr2.3.1.29); rPr2.5.2.26); rPr2.3.2.25); rPr2.3.2.26); rPr2.7.4.4); rPr2.3.1.30); rPr2.9.26); rPr2.5.2.27); rPr2.7.5.2)

 

Attributes

Description

ascii (ASCII Font)

Specifies a font which shall be used to format all characters in the ASCII range (0 - 127) within the parent run.

 

If the asciiTheme attribute is also specified, then this attribute shall be ignored and that value shall be used instead.

 

If this attribute is not present, the default value is to leave the formatting applied at previous level in the style hierarchy. If this attribute is never applied in the style hierarchy, then the text shall be displayed in any default font which supports ASCII content.

 

[Example: Consider a run of ASCII text which shall be displayed using the Courier New font. This requirement would be specified as follows in the resulting WordprocessingML:

 

<w:rPr>

<w:rFonts w:ascii=”Courier New” />

</w:rPr>

 

The ascii attribute specifies that the run shall use the Courier New font for all text in the ASCII range. end example]

 

The possible values for this attribute are defined by the ST_String simple type2.18.89).

asciiTheme (ASCII Theme Font)

Specifies a theme font which shall be used to format all characters in the ASCII range (0 - 127) within the parent run. This theme font is a reference to one of the predefined theme fonts, located in the document's Theme part,which allows for font information to be set centrally in the document.

 

If the ascii attribute is also specified, then that attribute shall be ignored and this value shall be used instead.

 

If this attribute is not present, the default value is to leave the formatting applied at previous level in the style hierarchy. If this attribute is never applied in the style hierarchy, then the text shall be displayed in the font specified by the ascii attribute.

 

[Example: Consider a run of ASCII text which shall be displayed using the majorASCII theme font. This requirement would be specified as follows in the resulting WordprocessingML:

 

<w:rPr>

<w:rFonts w:asciiTheme=”majorAscii” />

</w:rPr>

 

The ascii attribute specifies that the run shall use the majorAscii theme font as defined in the document's themes part for all text in the ASCII range. end example]

 

The possible values for this attribute are defined by the ST_Theme simple type2.18.103).

cs (Complex Script Font)

Specifies a font which shall be used to format all characters in a complex script Unicode range within the parent run.

 

If the csTheme attribute is also specified, then this attribute shall be ignored and that value shall be used instead.

 

If this attribute is not present, the default value is to leave the formatting applied at previous level in the style hierarchy. If this attribute is never applied in the style hierarchy, then the text shall be displayed in any default font which supports complex script content.

 

[Example: Consider a run of Arabic text which shall be displayed using the Arial Unicode MS font. This requirement would be specified as follows in the resulting WordprocessingML:

 

<w:rPr>

<w:rFonts w:cs=”Arial Unicode MS” />

</w:rPr>

 

The cs attribute specifies that the run shall use the Arial Unicode MS font for all text in a complex script range. end example]

 

The possible values for this attribute are defined by the ST_String simple type2.18.89).

cstheme (Complex Script Theme Font)

Specifies a theme font which shall be used to format all characters in a complex script Unicode range within the parent run. This theme font is a reference to one of the predefined theme fonts, located in the document's Theme part,which allows for font information to be set centrally in the document.

 

If the cs attribute is also specified, then that attribute shall be ignored and this value shall be used instead.

 

If this attribute is not present, the default value is to leave the formatting applied at previous level in the style hierarchy. If this attribute is never applied in the style hierarchy, then the text shall be displayed in the font specified by the cs attribute.

 

[Example: Consider a run of Arabic text which shall be displayed using the majorBidi theme font. This requirement would be specified as follows in the resulting WordprocessingML:

 

<w:rPr>

<w:rFonts w:csTheme=”majorBidi” />

</w:rPr>

 

The csTheme attribute specifies that the run shall use the majorBidi theme font as defined in the document's themes part for all text in a complex script range. end example]

 

The possible values for this attribute are defined by the ST_Theme simple type2.18.103).

eastAsia (East Asian Font)

Specifies a font which shall be used to format all characters in an East Asian Unicode range within the parent run.

 

If the eastAsiaTheme attribute is also specified, then this attribute shall be ignored and that value shall be used instead.

 

If this attribute is not present, the default value is to leave the formatting applied at previous level in the style hierarchy. If this attribute is never applied in the style hierarchy, then the text shall be displayed in any default font which supports East Asian content.

 

[Example: Consider a run of Japanese text which shall be displayed using the MS Mincho font. This requirement would be specified as follows in the resulting WordprocessingML:

 

<w:rPr>
<w:rFonts w:eastAsia=”MS Mincho” />
</w:rPr>

 

The eastAsia attribute specifies that the run shall use the MS Mincho font for all text in an East Asian range. end example]

 

The possible values for this attribute are defined by the ST_String simple type2.18.89).

eastAsiaTheme (East Asian Theme Font)

Specifies a theme font which shall be used to format all characters in an East Asian Unicode range within the parent run. This theme font is a reference to one of the predefined theme fonts, located in the document's Theme part,which allows for font information to be set centrally in the document.

 

If the eastAsia attribute is also specified, then that attribute shall be ignored and this value shall be used instead.

 

If this attribute is not present, the default value is to leave the formatting applied at previous level in the style hierarchy. If this attribute is never applied in the style hierarchy, then the text shall be displayed in the font specified by the eastAsia attribute.

 

[Example: Consider a run of Japanese text which shall be displayed using the minorEastAsia theme font. This requirement would be specified as follows in the resulting WordprocessingML:

 

<w:rPr>

<w:rFonts w:eastAsiaTheme=”minorEastAsia” />

</w:rPr>

 

The eastAsiaTheme attribute specifies that the run shall use the minorEastAsia theme font as defined in the document's themes part for all text in an East Asian range. end example]

 

The possible values for this attribute are defined by the ST_Theme simple type2.18.103).

hAnsi (High ANSI Font)

Specifies a font which shall be used to format all characters in a Unicode range within the parent run which does not fall into one of the three categories defined above, which is called the high ANSI range in WordprocessingML.

 

If the hAnsiTheme attribute is also specified, then this attribute shall be ignored and that value shall be used instead.

 

If this attribute is not present, the default value is to leave the formatting applied at previous level in the style hierarchy. If this attribute is never applied in the style hierarchy, then the text shall be displayed in any default font which supports high ANSI content.

 

[Example: Consider a run of text which falls into a high ANSI range, and shall be displayed using the Bauhaus 93 font. This requirement would be specified as follows in the resulting WordprocessingML:

 

<w:rPr>
<w:rFonts w:hAnsi=”Bauhaus 93” />
</w:rPr>

 

The hAnsi attribute specifies that the run shall use the Bauhaus 93 font for all text in a high ANSI range. end example]

 

The possible values for this attribute are defined by the ST_String simple type2.18.89).

hAnsiTheme (High ANSI Theme Font)

Specifies a theme font which shall be used to format all characters in a Unicode range within the parent run which does not fall into one of the three categories defined above, which is called the high ANSI range in WordprocessingML. This theme font is a reference to one of the predefined theme fonts, located in the document's Theme part,which allows for font information to be set centrally in the document.

 

If the hAnsi attribute is also specified, then that attribute shall be ignored and this value shall be used instead.

 

If this attribute is not present, the default value is to leave the formatting applied at previous level in the style hierarchy. If this attribute is never applied in the style hierarchy, then the text shall be displayed in the font specified by the hAnsi attribute.

 

[Example: Consider a run of text which falls into a high ANSI range, and shall be displayed using the minorHAnsi theme font. This requirement would be specified as follows in the resulting WordprocessingML:

 

<w:rPr>

<w:rFonts w:hAnsiTheme="minorHAnsi" />

</w:rPr>

 

The hAnsiTheme attribute specifies that the run shall use the minorHAnsi theme font as defined in the document's themes part for all text in a high ANSI range. end example]

 

The possible values for this attribute are defined by the ST_Theme simple type2.18.103).

hint (Font Content Type)

Specifies the font type which shall be used to format any ambiguous characters in the current run.

 

There are certain characters which are not explicitly stored in the document, and may be mapped into multiple categories of the four mentioned above. This attribute shall be used to arbitrate that conflict, and determine how ambiguities in this run shall be handled. [Note: This is primarily used to handle the formatting on the paragraph mark glyph, and other characters that are not stored as text in the WordprocessingML document. end note]

 

If this attribute is omitted, then this ambiguity may be resolved by any means available.

 

[Example: Consider the run representing the paragraph mark glyph, which is not stored as a physical character. Since this could therefore be formatted with any of the fonts specified for the run, this ambiguity is resolved using the following WordprocessingML:

 

<w:pPr>
<w:rPr>
<w:rFonts w:hint="eastAsia" />
</w:rPr>
</w:pPr>

 

The hint attribute specifies that the run shall use the eastAsia font (theme or not, whichever is in use for East Asian text) as defined for this range. end example]

 

The possible values for this attribute are defined by the ST_Hint simple type2.18.47).

The following XML Schema fragment defines the contents of this element:

<complexType name="CT_Fonts">

   <attribute name="hint" type="ST_Hint"/>

   <attribute name="ascii" type="ST_String"/>

   <attribute name="hAnsi" type="ST_String"/>

   <attribute name="eastAsia" type="ST_String"/>

   <attribute name="cs" type="ST_String"/>

   <attribute name="asciiTheme" type="ST_Theme"/>

   <attribute name="hAnsiTheme" type="ST_Theme"/>

   <attribute name="eastAsiaTheme" type="ST_Theme"/>

   <attribute name="cstheme" type="ST_Theme"/>

</complexType>