From: Vivien Nicolas <21@vingtetun.org> Date: Wed, 7 Sep 2011 13:20:23 +0000 (+0200) Subject: Fix lenIV misreading and warn instead of stop for unimplemented Type1 commands X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=12ef21cbbec3fdc2e8622700113de8c1a4b1d14c;p=pdf.js.git Fix lenIV misreading and warn instead of stop for unimplemented Type1 commands --- diff --git a/fonts.js b/fonts.js index c345cd2..e76451a 100755 --- 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;