mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
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
1 changed files with 2 additions and 2 deletions
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…
Add table
Add a link
Reference in a new issue