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:
commit
bddec11571
4
pdf.js
4
pdf.js
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user