From: Chris Jones Date: Sun, 10 Jul 2011 05:12:42 +0000 (-0700) Subject: work around #233 so that tests stop failing for the moment X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=7f9c9f5ba21efd136bc63838c09004083fc4ae05;p=pdf.js.git work around #233 so that tests stop failing for the moment --- diff --git a/fonts.js b/fonts.js index 5b020e8..83475c6 100755 --- a/fonts.js +++ b/fonts.js @@ -1133,6 +1133,12 @@ var Font = (function() { for (var i = 0; i < chars.length; ++i) { var charcode = chars.charCodeAt(i); var unicode = encoding[charcode]; + if ('undefined' == typeof(unicode)) { + // FIXME/issue 233: we're hitting this in test/pdf/sizes.pdf + // at the moment, for unknown reasons. + warn('Unencoded charcode '+ charcode); + unicode = charcode; + } // Check if the glyph has already been converted if (!IsNum(unicode))