[Pkg-javascript-commits] [pdf.js] 02/139: Map missing glyphs in encoding to notdef glyph.
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 8a536ac3461b335ba880981ebcca91fa6290234d
Author: Brendan Dahl <brendan.dahl at gmail.com>
Date: Fri Oct 3 12:11:20 2014 -0700
Map missing glyphs in encoding to notdef glyph.
---
src/core/fonts.js | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/core/fonts.js b/src/core/fonts.js
index e185503..9cac790 100644
--- a/src/core/fonts.js
+++ b/src/core/fonts.js
@@ -4698,6 +4698,8 @@ function type1FontGlyphMapping(properties, builtInEncoding, glyphNames) {
glyphId = glyphNames.indexOf(baseEncoding[charCode]);
if (glyphId >= 0) {
charCodeToGlyphId[charCode] = glyphId;
+ } else {
+ charCodeToGlyphId[charCode] = 0; // notdef
}
}
} else if (!!(properties.flags & FontFlags.Symbolic)) {
@@ -4714,6 +4716,8 @@ function type1FontGlyphMapping(properties, builtInEncoding, glyphNames) {
glyphId = glyphNames.indexOf(baseEncoding[charCode]);
if (glyphId >= 0) {
charCodeToGlyphId[charCode] = glyphId;
+ } else {
+ charCodeToGlyphId[charCode] = 0; // notdef
}
}
}
@@ -4726,6 +4730,8 @@ function type1FontGlyphMapping(properties, builtInEncoding, glyphNames) {
glyphId = glyphNames.indexOf(glyphName);
if (glyphId >= 0) {
charCodeToGlyphId[charCode] = glyphId;
+ } else {
+ charCodeToGlyphId[charCode] = 0; // notdef
}
}
}
--
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