]> git.parisson.com Git - pdf.js.git/commitdiff
Invert leading parameter since we scale by the invert
authorVivien Nicolas <21@vingtetun.org>
Mon, 25 Jul 2011 16:04:13 +0000 (18:04 +0200)
committerVivien Nicolas <21@vingtetun.org>
Mon, 25 Jul 2011 16:04:13 +0000 (18:04 +0200)
pdf.js

diff --git a/pdf.js b/pdf.js
index 85e0c841fc7b469317f2c665d413aad3a979ee4d..e388fc49981f93ec04762a2af2df2d007abbd59b 100644 (file)
--- a/pdf.js
+++ b/pdf.js
@@ -4207,7 +4207,7 @@ var CanvasGraphics = (function() {
       this.current.y = this.current.lineY = 0;
     },
     nextLine: function() {
-      this.moveText(0, this.current.leading);
+      this.moveText(0, -this.current.leading);
     },
     showText: function(text) {
       // TODO: apply charSpacing, wordSpacing, textHScale