From: Vivien Nicolas <21@vingtetun.org> Date: Tue, 30 Aug 2011 02:13:41 +0000 (+0200) Subject: Fix a little issue with 'ff' on the pdf spec page 629 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=37f88291d0b91d8bce07d26cd67aac304e239e00;p=pdf.js.git Fix a little issue with 'ff' on the pdf spec page 629 --- diff --git a/pdf.js b/pdf.js index 550e729..0302e7c 100644 --- a/pdf.js +++ b/pdf.js @@ -4287,7 +4287,7 @@ var PartialEvaluator = (function() { for (var i = firstChar; i <= lastChar; i++) { var glyph = diffEncoding[i] || baseEncoding[i]; if (glyph) - glyphsMap[glyph] = encodingMap[i] = GlyphsUnicode[glyph]; + glyphsMap[glyph] = encodingMap[i] = GlyphsUnicode[glyph] || i; } if (fontType == 'TrueType' && fontDict.has('ToUnicode') && differences) {