aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/docx/body-reader.js1
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 {