<doNotRelyOnCSS> (Do Not Rely on CSS for Font Face Formatting)

This element specifies whether applications may rely on the CSS properties for font face (the font-family property) when saving this WordprocessingML document as a web page. If this element is utilized, then the HTML font element should be used either in place of or in concert with these CSS properties in order to specify the font face formatting for the resulting web page.

If this element is omitted, then applications may choose to rely on the CSS properties for font face as desired.

Note:
<w:webSettings>
  <w:doNotRelyOnCSS w:val="true" />
</w:webSettings>

The <doNotRelyOnCSS> element has a @val attribute value of true, which specifies that applications should include the HTML font element when saving this WordprocessingML document as a web page. For example, this output:

<span style='font-family:"Courier New"'>text</span>

This output would instead be saved as follows:

<font face="Courier New"><span style='font-family:"Courier New"'>text</span></font>

Parent Elements

<webSettings>2.15.2.44)

Attributes

Description

<val> (On/Off Value)

Specifies a binary value for the property defined by the parent XML element.

A value of on, 1, or true specifies that the property shall be explicitly applied. This is the default value for this attribute, and is implied when the parent element is present, but this attribute is omitted.

A value of off, 0, or false specifies that the property shall be explicitly turned off.

example:
<w:… w:val="off"/>

The @val attribute explicitly declares that the property is turned off. ]

The possible values for this attribute are defined by the ST_OnOff simple type (§2.18.67).

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

<complexType name="CT_OnOff">
	<attribute name="val" type="ST_OnOff"/>
</complexType>