w:sz (Font Size)

Specifies the font size in half-points (e.g., w:val='24' equals 12pt).

Parent elements

Description

w:sz sets the font size for the run. It is defined in ECMA-376 Part 1 §17.3.2.38.

The value is expressed in half-points (twips-of-a-point): a value of 24 equals 12 pt, 28 equals 14 pt, and so on. The complex-script equivalent is w:szCs.

Attributes

Attribute Type Possible Values Description
w:val ST_HpsMeasure Positive integer in half-points (e.g. 20 = 10 pt, 24 = 12 pt, 28 = 14 pt, 32 = 16 pt, 72 = 36 pt). Font size in half-points.

Examples

<!-- 14pt text -->
<w:rPr>
  <w:sz w:val="28"/>
</w:rPr>

Notes

  • Value is in half-points: divide by 2 to get points (e.g. 24 → 12 pt).
  • w:szCs provides the equivalent size for complex script (e.g. Arabic, Hebrew) characters in the same run.