From: notmasteryet Date: Mon, 16 Jan 2012 20:13:38 +0000 (-0600) Subject: Fixes type2 fonts conversion (#940) X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=2927f5e7bd211ea3e19a7cc7047dd3d12869fa06;p=pdf.js.git Fixes type2 fonts conversion (#940) --- diff --git a/src/fonts.js b/src/fonts.js index 329d7ad..5717885 100644 --- a/src/fonts.js +++ b/src/fonts.js @@ -3324,15 +3324,9 @@ var Type2CFF = (function Type2CFFClosure() { inverseEncoding[encoding[charcode]] = charcode | 0; for (var i = 0, ii = charsets.length; i < ii; i++) { var glyph = charsets[i]; - if (glyph == '.notdef') { - charstrings.push({ - unicode: 0, - code: 0, - gid: i, - glyph: glyph - }); + if (glyph == '.notdef') continue; - } + var code = inverseEncoding[i]; if (!code || isSpecialUnicode(code)) { unassignedUnicodeItems.push(i);