From: Vivien Nicolas <21@vingtetun.org> Date: Tue, 21 Jun 2011 01:05:28 +0000 (+0200) Subject: Fix some leftovers X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=8787e7cbe9af9056767669e1a35dfb6082f2aaba;p=pdf.js.git Fix some leftovers --- diff --git a/pdf.js b/pdf.js index d6c4781..b140ef6 100644 --- a/pdf.js +++ b/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); }