]> git.parisson.com Git - pdf.js.git/commitdiff
No suppressWarnings in Yury's encoding patch
authorArtur Adib <arturadib@gmail.com>
Mon, 14 Nov 2011 20:32:52 +0000 (15:32 -0500)
committerArtur Adib <arturadib@gmail.com>
Mon, 14 Nov 2011 20:32:52 +0000 (15:32 -0500)
src/canvas.js

index bf3bad4c66c12807b531da51415a510d765afbd5..d80bc80b252b263db22bdaadab6dab1c4538632a 100644 (file)
@@ -478,10 +478,10 @@ var CanvasGraphics = (function canvasGraphics() {
         geom.hScale = tr[0] - bl[0];
         geom.vScale = tr[1] - bl[1];
       }
-      var spaceGlyph = font.charsToGlyphs(' ', true);
+      var spaceGlyph = font.charsToGlyphs(' ');
       // Hack (sometimes space is not encoded)
       if (spaceGlyph.length === 0 || spaceGlyph[0].width === 0)
-        spaceGlyph = font.charsToGlyphs('i', true);
+        spaceGlyph = font.charsToGlyphs('i');
       // Fallback
       if (spaceGlyph.length === 0 || spaceGlyph[0].width === 0)
         spaceGlyph = [ {width:0} ];