From cf93f2317829f4de9c322579e300174ed19cfe03 Mon Sep 17 00:00:00 2001 From: Vivien Nicolas <21@vingtetun.org> Date: Sat, 10 Sep 2011 20:00:27 +0200 Subject: [PATCH] Disable hinting until it works --- fonts.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/fonts.js b/fonts.js index d283fc3d8..a8498bf59 100755 --- a/fonts.js +++ b/fonts.js @@ -12,6 +12,9 @@ var kMaxWaitForFontFace = 1000; // Unicode Private Use Area var kCmapGlyphOffset = 0xE000; +// Until hinting is fully supported this constant can be used +var kHintingEnabled = false; + /** * Hold a map of decoded fonts and of the standard fourteen Type1 * fonts and their acronyms. @@ -1526,6 +1529,9 @@ var Type1Parser = function() { i++; continue; } + } else if (!kHintingEnabled && (value == 1 || value == 2)) { + charstring.push('drop', 'drop', 'drop', 'drop', 'drop', 'drop'); + continue; } command = charStringDictionary['12'][escape]; @@ -1550,6 +1556,9 @@ var Type1Parser = function() { charstring.push(lsb, 'hmoveto'); continue; + } else if (!kHintingEnabled && (value == 1 || value == 3)) { + charstring.push('drop', 'drop'); + continue; } command = charStringDictionary[value]; }