[Table of Contents] [docx version]
WordprocessingML Reference Material - Table of Contents
w (Expanded/Compressed Text)
This element specifies the amount by which each character shall be expanded or when the character is rendered in the document. This property has an of stretching or compressing each character in the run, as opposed to the spacing element (§2.3.2.33) which expands/compresses the text by adding additional character pitch but not changing the width of the actual characters displayed on the line.
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 run shall be displayed at 100% of its normal width.
[Example: Consider a run of text which shall be expanded to 200% of its normal width when displaying each character within the contents of the run. This constraint is specified using the following WordprocessingML:
<w:rPr>
<w:w w:val="200"/>
</w:rPr>
This run explicitly declares that the w value is 200, so the contents of this run will appear at 200% of their normal character width by stretching the width of each character. end example]
Parent Elements |
rPr (§2.7.8.1); rPr (§2.3.1.29); rPr (§2.5.2.26); rPr (§2.3.2.25); rPr (§2.3.2.26); rPr (§2.7.4.4); rPr (§2.3.1.30); rPr (§2.9.26); rPr (§2.5.2.27); rPr (§2.7.5.2) |
Attributes |
Description |
val (Text Expansion/Compression Value) |
Specifies that the percentage by which the contents of this run shall be expanded or compressed with respect to its normal (100%) character width.
If this attribute is omitted, then the contents of this run shall be displayed at 100% of its normal size.
[Example: Consider a run of text which shall be compressed to 200% when displaying each character within the contents of the run. This constraint is specified using the following WordprocessingML:
<w:rPr>
This run explicitly declares that the w value is 50, so the contents of this run will appear at 50% of their normal character width by compressing the width of each character. end example]
The possible values for this attribute are defined by the ST_TextScale simple type (§2.18.102). |
The following XML Schema fragment defines the contents of this element:
<complexType name="CT_TextScale">
<attribute name="val" type="ST_TextScale"/>
</complexType>