Skip to content

Commit 62325b3

Browse files
committed
fix for #436
1 parent 7ed161e commit 62325b3

File tree

5 files changed

+21
-21
lines changed

5 files changed

+21
-21
lines changed

dist/jspdf.debug.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55

66
/** @license
77
* jsPDF - PDF Document creation from JavaScript
8-
* Version 1.5.3 Built on 2018-12-25T19:34:57.679Z
9-
* CommitID 7855f6f29b
8+
* Version 1.5.3 Built on 2018-12-25T22:47:22.756Z
9+
* CommitID 7ed161ee98
1010
*
1111
* Copyright (c) 2010-2016 James Hall <[email protected]>, https://github.com/MrRio/jsPDF
1212
* 2010 Aaron Spike, https://github.com/acspike
@@ -8942,7 +8942,7 @@
89428942

89438943
for (var i = 0; i < txt.length; i++) {
89448944
var currentLine = txt[i];
8945-
var textSize = this.getStringUnitWidth(currentLine) * this.internal.getFontSize();
8945+
var textSize = this.getStringUnitWidth(currentLine) * this.internal.getFontSize() / this.internal.scaleFactor;
89468946
this.text(currentLine, x + w - textSize - padding, y + this.internal.getLineHeight() * (i + 1));
89478947
}
89488948
} else {

dist/jspdf.min.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/jspdf.node.debug.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
/** @license
44
* jsPDF - PDF Document creation from JavaScript
5-
* Version 1.5.3 Built on 2018-12-25T19:35:16.207Z
6-
* CommitID 7855f6f29b
5+
* Version 1.5.3 Built on 2018-12-25T22:47:42.414Z
6+
* CommitID 7ed161ee98
77
*
88
* Copyright (c) 2010-2016 James Hall <[email protected]>, https://github.com/MrRio/jsPDF
99
* 2010 Aaron Spike, https://github.com/acspike
@@ -8628,7 +8628,7 @@ var jsPDF = function (global) {
86288628

86298629
for (var i = 0; i < txt.length; i++) {
86308630
var currentLine = txt[i];
8631-
var textSize = this.getStringUnitWidth(currentLine) * this.internal.getFontSize();
8631+
var textSize = this.getStringUnitWidth(currentLine) * this.internal.getFontSize() / this.internal.scaleFactor;
86328632
this.text(currentLine, x + w - textSize - padding, y + this.internal.getLineHeight() * (i + 1));
86338633
}
86348634
} else {

dist/jspdf.node.min.js

Lines changed: 11 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/modules/cell.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@
177177
}
178178
for (var i = 0; i < txt.length; i++) {
179179
var currentLine = txt[i];
180-
var textSize = this.getStringUnitWidth(currentLine) * this.internal.getFontSize();
180+
var textSize = this.getStringUnitWidth(currentLine) * this.internal.getFontSize() / this.internal.scaleFactor;
181181
this.text(currentLine, x + w - textSize - padding, y + this.internal.getLineHeight()*(i+1));
182182
}
183183
} else {

0 commit comments

Comments
 (0)