From f7ee90cc8c084365bf1b963fd1e95888a5ee5f4e Mon Sep 17 00:00:00 2001 From: Vivien Nicolas <21@vingtetun.org> Date: Tue, 6 Sep 2011 02:28:06 +0200 Subject: [PATCH] Fix review comments for #436 --- fonts.js | 2 +- pdf.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fonts.js b/fonts.js index 829d783e6..50eafc566 100755 --- a/fonts.js +++ b/fonts.js @@ -2253,7 +2253,7 @@ var Type2CFF = (function() { index = code = properties.glyphs[glyph] || index; var width = widths[code] || defaultWidth; - if (index <= 0x1f || (index >= 127 && code <= 255)) + if (code <= 0x1f || (code >= 127 && code <= 255)) code += kCmapGlyphOffset; properties.encoding[index] = code; diff --git a/pdf.js b/pdf.js index 51802d9c7..35da1e332 100644 --- a/pdf.js +++ b/pdf.js @@ -4304,7 +4304,7 @@ var PartialEvaluator = (function() { var index = GlyphsUnicode[glyph] || i; glyphsMap[glyph] = encodingMap[i] = index; - if (index <= 0x1f || (index >= 128 && code <= 255)) + if (index <= 0x1f || (index >= 127 && index <= 255)) glyphsMap[glyph] = encodingMap[i] += kCmapGlyphOffset; } }