mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 07:08:08 +02:00
Fix some leftovers
This commit is contained in:
parent
ab4ecdcb73
commit
69c71c9332
1 changed files with 2 additions and 2 deletions
4
pdf.js
4
pdf.js
|
@ -2532,7 +2532,7 @@ var CanvasGraphics = (function() {
|
|||
}
|
||||
|
||||
this.current.fontSize = size;
|
||||
this.ctx.font = this.current.fontSize +'px "' + fontName + '", Symbol';
|
||||
this.ctx.font = this.current.fontSize +'px "' + fontName + '"';
|
||||
},
|
||||
setTextRenderingMode: function(mode) {
|
||||
TODO("text rendering mode");
|
||||
|
@ -2720,7 +2720,7 @@ var CanvasGraphics = (function() {
|
|||
// normalize transform matrix so each step
|
||||
// takes up the entire tmpCanvas (need to remove white borders)
|
||||
if (matrix[1] === 0 && matrix[2] === 0) {
|
||||
matrix[0] = tmpCanvas.width / xstep;
|
||||
matrix[0] = tmpCanvas.width / xstep;
|
||||
matrix[3] = tmpCanvas.height / ystep;
|
||||
topLeft = applyMatrix([x0,y0], matrix);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue