]> git.parisson.com Git - pdf.js.git/commitdiff
Fix some leftovers
authorVivien Nicolas <21@vingtetun.org>
Tue, 21 Jun 2011 01:05:28 +0000 (03:05 +0200)
committerVivien Nicolas <21@vingtetun.org>
Tue, 21 Jun 2011 01:05:28 +0000 (03:05 +0200)
pdf.js

diff --git a/pdf.js b/pdf.js
index d6c47819990c642f1efc7ead93e4318c8f54816c..b140ef6c1482c0e7485c80fb9299274e1a3c3c64 100644 (file)
--- 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);
             }