More fix to handle some others invert leading cases in PDF32000.pdf
This commit is contained in:
parent
57cebac711
commit
9b06da98ca
6
pdf.js
6
pdf.js
@ -4142,7 +4142,7 @@ var CanvasGraphics = (function() {
|
|||||||
this.current.textHScale = scale / 100;
|
this.current.textHScale = scale / 100;
|
||||||
},
|
},
|
||||||
setLeading: function(leading) {
|
setLeading: function(leading) {
|
||||||
this.current.leading = leading;
|
this.current.leading = -leading;
|
||||||
},
|
},
|
||||||
setFont: function(fontRef, size) {
|
setFont: function(fontRef, size) {
|
||||||
var font = this.xref.fetchIfRef(this.res.get('Font'));
|
var font = this.xref.fetchIfRef(this.res.get('Font'));
|
||||||
@ -4194,7 +4194,7 @@ var CanvasGraphics = (function() {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
setLeadingMoveText: function(x, y) {
|
setLeadingMoveText: function(x, y) {
|
||||||
this.setLeading(y);
|
this.setLeading(-y);
|
||||||
this.moveText(x, y);
|
this.moveText(x, y);
|
||||||
},
|
},
|
||||||
setTextMatrix: function(a, b, c, d, e, f) {
|
setTextMatrix: function(a, b, c, d, e, f) {
|
||||||
@ -4207,7 +4207,7 @@ var CanvasGraphics = (function() {
|
|||||||
this.current.y = this.current.lineY = 0;
|
this.current.y = this.current.lineY = 0;
|
||||||
},
|
},
|
||||||
nextLine: function() {
|
nextLine: function() {
|
||||||
this.moveText(0, -this.current.leading);
|
this.moveText(0, this.current.leading);
|
||||||
},
|
},
|
||||||
showText: function(text) {
|
showText: function(text) {
|
||||||
// TODO: apply charSpacing, wordSpacing, textHScale
|
// TODO: apply charSpacing, wordSpacing, textHScale
|
||||||
|
Loading…
Reference in New Issue
Block a user