[Table of Contents] [docx version]

WordprocessingML Reference Material - Table of Contents

sz (Font Size)

This element specifies the font size which shall be applied to all non complex script characters in the contents of this run when displayed.

If this element is not present, the default value is to leave the value applied at previous level in the style hierarchy. If this element is never applied in the style hierarchy, then any appropriate font size may be used for non complex script characters.

[Example: Consider a run of text which shall have an explicit font size of 13.5 points for the non complex script contents of the run. This constraint is specified using the following WordprocessingML:

<w:rPr>
<w:sz w:val="27"/>
</w:rPr>

This run explicitly declares that the sz property is 27 half-point for the non-complex script contents of this run, so the text will be displayed in 13.5 point font size. 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

val (Half Point Measurement)

Specifies a positive measurement specified in half-points (1/144 of an inch).

 

The contents of this attribute value are interpreted based on the context of the parent XML element.

 

[Example: Consider the following WordprocessingML fragment:

 

<w:rPr>

<w:sz w:val="28" />

</w:rPr>

 

The value of the val attribute is the font size of the run's contents.

 

However, consider the following fragment:

 

<w:rPr>

<w:kern w:val="30" />

</w:rPr>

 

In this case, the value in the val attribute is the minimum size for which font characters shall be automatically kerned.

 

In each case, the value is interpreted in the context of the parent element. end example]

 

The possible values for this attribute are defined by the ST_HpsMeasure simple type2.18.48).

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

<complexType name="CT_HpsMeasure">

   <attribute name="val" type="ST_HpsMeasure" use="required"/>

</complexType>