Font height in English Metric Units (EMU). |None| indicates the font size should be inherited from the style hierarchy. |Length| is a subclass of |int| having properties for convenient conversion into points or other length units. The :class:`docx.shared.Pt` class allows
(self)
| 253 | |
| 254 | @property |
| 255 | def size(self) -> Length | None: |
| 256 | """Font height in English Metric Units (EMU). |
| 257 | |
| 258 | |None| indicates the font size should be inherited from the style hierarchy. |
| 259 | |Length| is a subclass of |int| having properties for convenient conversion into |
| 260 | points or other length units. The :class:`docx.shared.Pt` class allows |
| 261 | convenient specification of point values:: |
| 262 | |
| 263 | >>> font.size = Pt(24) |
| 264 | >>> font.size |
| 265 | 304800 |
| 266 | >>> font.size.pt |
| 267 | 24.0 |
| 268 | |
| 269 | """ |
| 270 | rPr = self._element.rPr |
| 271 | if rPr is None: |
| 272 | return None |
| 273 | return rPr.sz_val |
| 274 | |
| 275 | @size.setter |
| 276 | def size(self, emu: int | Length | None) -> None: |