From 42ba33f1bf0f2e45362d2517e1217090ebbba923 Mon Sep 17 00:00:00 2001 From: Andreas Gal Date: Fri, 22 Jul 2011 23:28:42 -0700 Subject: [PATCH] fix incorrect property name, tests were failing --- pdf.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pdf.js b/pdf.js index ba4ef61c1..101a9c20e 100644 --- a/pdf.js +++ b/pdf.js @@ -3446,8 +3446,8 @@ var EvalState = (function() { this.lineX = 0; this.lineY = 0; // Character and word spacing - this.charSpace = 0; - this.wordSpace = 0; + this.charSpacing = 0; + this.wordSpacing = 0; this.textHScale = 1; // Color spaces this.fillColorSpace = null; @@ -3864,8 +3864,8 @@ var CanvasExtraState = (function() { this.lineX = 0; this.lineY = 0; // Character and word spacing - this.charSpace = 0; - this.wordSpace = 0; + this.charSpacing = 0; + this.wordSpacing = 0; this.textHScale = 1; // Color spaces this.fillColorSpaceObj = null; @@ -4212,7 +4212,7 @@ var CanvasGraphics = (function() { var charSpacing = current.charSpacing; var wordSpacing = current.wordSpacing; var textHScale = current.textHScale; - + if (charSpacing != 0 || wordSpacing != 0 || textHScale != 1) { scaleFactorX *= textHScale; ctx.scale(1 / textHScale, 1);