diff options
| author | Michael Williamson <mike@zwobble.org> | 2020-04-12 14:55:14 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2020-04-12 14:55:14 +0100 |
| commit | 35a32074111d70d56d24bf4de4013a36ff3c5f24 (patch) | |
| tree | 4704cdb01553f45bdccef63076038fe8231185e6 /lib | |
| parent | 74118f20abb76972854f2723d0beea52f8c7f677 (diff) | |
Document value of w:sz
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/docx/body-reader.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/docx/body-reader.js b/lib/docx/body-reader.js index 45f6a33..94034d1 100644 --- a/lib/docx/body-reader.js +++ b/lib/docx/body-reader.js @@ -59,6 +59,7 @@ function BodyReader(options) { function readRunProperties(element) { return readRunStyle(element).map(function(style) { var fontSizeString = element.firstOrEmpty("w:sz").attributes["w:val"]; + // w:sz gives the font size in half points, so halve the value to get the size in points var fontSize = fontSizeString ? parseInt(fontSizeString, 10) / 2 : null; return { |
