]> git.parisson.com Git - pdf.js.git/commitdiff
fix rendering of some symbols. Patch by Vivien Nicolas.
authorChris Jones <jones.chris.g@gmail.com>
Thu, 23 Jun 2011 22:36:53 +0000 (15:36 -0700)
committerChris Jones <jones.chris.g@gmail.com>
Thu, 23 Jun 2011 22:36:53 +0000 (15:36 -0700)
pdf.js

diff --git a/pdf.js b/pdf.js
index da5926c09de746bd4bc182e9a68edcc8c39e59c7..ffefc61a19557543255182d9dea7ed1d2cce4524 100644 (file)
--- a/pdf.js
+++ b/pdf.js
@@ -2857,7 +2857,7 @@ var CanvasGraphics = (function() {
             } else {
                 text = Fonts.charsToUnicode(text);
                 this.ctx.translate(this.current.x, -1 * this.current.y);
-                this.ctx.fillText(Fonts.charsToUnicode(text), 0, 0);
+                this.ctx.fillText(text, 0, 0);
                 this.current.x += this.ctx.measureText(text).width;
             }