]> git.parisson.com Git - pdf.js.git/commitdiff
Fix lenIV misreading and warn instead of stop for unimplemented Type1 commands
authorVivien Nicolas <21@vingtetun.org>
Wed, 7 Sep 2011 13:20:23 +0000 (15:20 +0200)
committerVivien Nicolas <21@vingtetun.org>
Wed, 7 Sep 2011 13:20:23 +0000 (15:20 +0200)
fonts.js

index c345cd21e0835e98ef9597437d073478723e9e2c..e76451a9fee40bb7d55e001206f0d81999f4c99a 100755 (executable)
--- a/fonts.js
+++ b/fonts.js
@@ -1597,7 +1597,7 @@ var Type1Parser = function() {
         } else if (!command) {
           break;
         } else if (command == -1) {
-          error('Support for Type1 command ' + value +
+          warn('Support for Type1 command ' + value +
                 ' (' + escape + ') is not implemented in charstring: ' +
                 charstring);
         }
@@ -1641,7 +1641,8 @@ var Type1Parser = function() {
   };
 
   function readNumber(str, index) {
-    while (str[index++] == ' ');
+    while (str[index] == ' ')
+      index++;
 
     var start = index;