]> git.parisson.com Git - pdf.js.git/commitdiff
Remove the ignoreFont variable
authorVivien Nicolas <21@vingtetun.org>
Thu, 23 Jun 2011 20:22:46 +0000 (22:22 +0200)
committerVivien Nicolas <21@vingtetun.org>
Thu, 23 Jun 2011 20:22:46 +0000 (22:22 +0200)
pdf.js

diff --git a/pdf.js b/pdf.js
index addcea6de46cebf4194167d90fa6822293072014..f0d3bae6575ecaaa37dd7e1f0a16abb88e1f3f4a 100644 (file)
--- a/pdf.js
+++ b/pdf.js
@@ -2359,16 +2359,9 @@ var CanvasGraphics = (function() {
                 error("FontFile not found for font: " + fontName);
             fontFile = xref.fetchIfRef(fontFile);
 
-            // Fonts with an embedded cmap but without any assignment in
-            // it are not yet supported, so ask the fonts loader to ignore
-            // them to not pay a stupid one sec latence.
-            var ignoreFont = false;
-
             var encodingMap = {};
             var charset = [];
             if (fontDict.has("Encoding")) {
-                ignoreFont = false;
-
                 var encoding = xref.fetchIfRef(fontDict.get("Encoding"));
                 if (IsDict(encoding)) {
                     // Build a map between codes and glyphs
@@ -2433,7 +2426,6 @@ var CanvasGraphics = (function() {
                             break;
 
                           case "beginbfrange":
-                            ignoreFont = false;
                           case "begincodespacerange":
                             token = "";
                             tokens = [];
@@ -2488,8 +2480,7 @@ var CanvasGraphics = (function() {
                 type: subType.name,
                 encoding: encodingMap,
                 charset: charset,
-                bbox: bbox,
-                ignore: ignoreFont
+                bbox: bbox
             };
 
             return {