[Pkg-javascript-commits] [pdf.js] 01/139: Don't map glyphs to unicode non breaking space.
David Prévot
taffit at moszumanska.debian.org
Fri Jan 9 21:18:20 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository pdf.js.
commit 2fc5e6a9adf7d99a96cce45b85c7937265c68920
Author: Brendan Dahl <brendan.dahl at gmail.com>
Date: Thu Oct 2 10:58:56 2014 -0700
Don't map glyphs to unicode non breaking space.
---
src/core/fonts.js | 1 +
test/pdfs/issue5138.pdf | Bin 0 -> 4794 bytes
test/test_manifest.json | 8 ++++++++
3 files changed, 9 insertions(+)
diff --git a/src/core/fonts.js b/src/core/fonts.js
index 677e293..e185503 100644
--- a/src/core/fonts.js
+++ b/src/core/fonts.js
@@ -2679,6 +2679,7 @@ var Font = (function FontClosure() {
fontCharCode <= 0x1f || // Control chars
fontCharCode === 0x7F || // Control char
fontCharCode === 0xAD || // Soft hyphen
+ fontCharCode === 0xA0 || // Non breaking space
(fontCharCode >= 0x80 && fontCharCode <= 0x9F) || // Control chars
// Prevent drawing characters in the specials unicode block.
(fontCharCode >= 0xFFF0 && fontCharCode <= 0xFFFF) ||
diff --git a/test/pdfs/issue5138.pdf b/test/pdfs/issue5138.pdf
new file mode 100644
index 0000000..715ddf3
Binary files /dev/null and b/test/pdfs/issue5138.pdf differ
diff --git a/test/test_manifest.json b/test/test_manifest.json
index 65c145d..a63c1f7 100644
--- a/test/test_manifest.json
+++ b/test/test_manifest.json
@@ -592,6 +592,14 @@
"type": "eq",
"about": "Glyph accent drawn as curves."
},
+ { "id": "issue5138",
+ "file": "pdfs/issue5138.pdf",
+ "md5": "9931686d7dee0df62640fbf58bed3323",
+ "link": false,
+ "rounds": 1,
+ "type": "eq",
+ "about": "Glyph that gets mapped to unicode non-breaking-space."
+ },
{ "id": "simpletype3font",
"file": "pdfs/simpletype3font.pdf",
"md5": "b374c7543920840c61999e9e86939f99",
--
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