From eca6c6cb5d943c160b6e8a278563b51f893cab63 Mon Sep 17 00:00:00 2001 From: Yury Delendik Date: Thu, 3 Jan 2013 15:29:55 -0600 Subject: [PATCH] Disables *Blue* values when HINT_ENABLED == false --- src/fonts.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/fonts.js b/src/fonts.js index 283bc54f7..0e6506498 100644 --- a/src/fonts.js +++ b/src/fonts.js @@ -4847,8 +4847,12 @@ var Type1Parser = function type1Parser() { case '/FamilyBlues': case '/FamilyOtherBlues': var blueArray = readNumberArray(eexecStr, i + 1); - if (blueArray.length > 0 && (blueArray.length % 2) == 0) + // *Blue* values may contain invalid data: disables reading of + // those values when hinting is disabled. + if (blueArray.length > 0 && (blueArray.length % 2) == 0 && + HINTING_ENABLED) { program.properties.privateData[token.substring(1)] = blueArray; + } break; case '/StemSnapH': case '/StemSnapV':