<spacingInWholePoints> (Only Expand/Condense Text By Whole Points)

This element specifies how applications should apply text expansion/compression defined using the <spacing> element (§2.3.2.33) within a set of run properties.

Typically, as defined in the <spacing> element, text within runs in a WordprocessingML document may be expanded or compressed in increments of twentieths of a point. This element, when present with a @val attribute value of true (or equivalent), specifies that the expansion and compression of text shall only be performed in increments of points. Any value which is not equal to an expansion or compression of a whole point shall be rounded down to the nearest whole point when the text is expanded/compressed within the WordprocessingML document.

example:
<w:p><w:r>
    <w:t>This is text.</w:t>
  </w:r>
</w:p>
<w:p><w:r>
    <w:rPr>
      <w:spacing w:val="20" />
    </w:rPr>
    <w:t>This is text.</w:t>
  </w:r>
</w:p>
<w:p><w:r>
    <w:rPr>
      <w:spacing w:val="36" />
    </w:rPr>
    <w:t>This is text.</w:t>
  </w:r>
</w:p>

The default presentation would have each run of text expanded exactly as requested:

However, if this compatibility setting is turned on:

<w:compat>
  <w:spacingInWholePoints />
</w:compat>

Then the third line - with an expansion of 1.8 points - would instead be rounded down to the nearest whole number of points when expanded, resulting in the following output:

In the resulting output, the second and third lines are identical, as the third line has a next expansion of exactly one point. ]

Parent Elements

<compat>2.15.3.9)

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.

<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>