[Pkg-javascript-commits] [pdf.js] 138/207: Additional heuristics to recognize unknown glyphs for toUnicode (bug 1027533)
David Prévot
taffit at moszumanska.debian.org
Mon Jul 28 15:36:40 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository pdf.js.
commit b19bb74813347eafc5dd9434ec6725f832444848
Author: Jonas Jenwald <jonas.jenwald at gmail.com>
Date: Thu Jun 19 23:16:49 2014 +0200
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 9f38c85..81a4a92 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' &&
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/pdf.js.git
More information about the Pkg-javascript-commits
mailing list