Fix some leftovers

This commit is contained in:
Vivien Nicolas 2011-06-21 03:05:28 +02:00
parent 10944be385
commit 8787e7cbe9

4
pdf.js
View File

@ -2532,7 +2532,7 @@ var CanvasGraphics = (function() {
} }
this.current.fontSize = size; this.current.fontSize = size;
this.ctx.font = this.current.fontSize +'px "' + fontName + '", Symbol'; this.ctx.font = this.current.fontSize +'px "' + fontName + '"';
}, },
setTextRenderingMode: function(mode) { setTextRenderingMode: function(mode) {
TODO("text rendering mode"); TODO("text rendering mode");
@ -2720,7 +2720,7 @@ var CanvasGraphics = (function() {
// normalize transform matrix so each step // normalize transform matrix so each step
// takes up the entire tmpCanvas (need to remove white borders) // takes up the entire tmpCanvas (need to remove white borders)
if (matrix[1] === 0 && matrix[2] === 0) { if (matrix[1] === 0 && matrix[2] === 0) {
matrix[0] = tmpCanvas.width / xstep; matrix[0] = tmpCanvas.width / xstep;
matrix[3] = tmpCanvas.height / ystep; matrix[3] = tmpCanvas.height / ystep;
topLeft = applyMatrix([x0,y0], matrix); topLeft = applyMatrix([x0,y0], matrix);
} }