From b19bb74813347eafc5dd9434ec6725f832444848 Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Thu, 19 Jun 2014 23:16:49 +0200 Subject: [PATCH] Additional heuristics to recognize unknown glyphs for toUnicode (bug 1027533) --- src/core/fonts.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/core/fonts.js b/src/core/fonts.js index 9f38c85fb..81a4a92f1 100644 --- a/src/core/fonts.js +++ b/src/core/fonts.js @@ -4295,6 +4295,12 @@ var Font = (function FontClosure() { (code = parseInt(glyphName.substr(1), 16))) { toUnicode[charcode] = String.fromCharCode(code); } + // g00xx glyph + if (glyphName.length === 5 && + glyphName[0] === 'g' && + (code = parseInt(glyphName.substr(1), 16))) { + toUnicode[charcode] = String.fromCharCode(code); + } // Cddd glyph if (glyphName.length >= 3 && glyphName[0] === 'C' &&