<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.
<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 |
---|
|
Attributes |
Description |
---|---|
|
Specifies a binary value for the property defined by the parent XML element. A value of A value of <w:… w:val="off"/> The 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>