Merge pull request #283 from vingtetun/master

Leading does need to be inverted since we already scale by the invert
This commit is contained in:
Andreas Gal 2011-07-25 09:51:10 -07:00
commit bddec11571

4
pdf.js
View File

@ -4142,7 +4142,7 @@ var CanvasGraphics = (function() {
this.current.textHScale = scale / 100;
},
setLeading: function(leading) {
this.current.leading = leading;
this.current.leading = -leading;
},
setFont: function(fontRef, size) {
var font = this.xref.fetchIfRef(this.res.get('Font'));
@ -4194,7 +4194,7 @@ var CanvasGraphics = (function() {
}
},
setLeadingMoveText: function(x, y) {
this.setLeading(y);
this.setLeading(-y);
this.moveText(x, y);
},
setTextMatrix: function(a, b, c, d, e, f) {