Do not alter the encoding if no file is going to be altered

This commit is contained in:
Vivien Nicolas 2011-09-06 17:26:48 +02:00
parent 0c091ca855
commit 5e37bf7aeb

3
pdf.js
View File

@ -4304,6 +4304,9 @@ var PartialEvaluator = (function() {
var index = GlyphsUnicode[glyph] || i;
glyphsMap[glyph] = encodingMap[i] = index;
if (!fontFile)
continue;
if (index <= 0x1f || (index >= 127 && index <= 255))
glyphsMap[glyph] = encodingMap[i] += kCmapGlyphOffset;
}