[Pkg-javascript-commits] [pdf.js] 100/106: Clear the |getSinglePixelWidth| cache when rendering Type3 fonts (issue 6117)
David Prévot
taffit at moszumanska.debian.org
Sat Jun 20 21:35:29 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 75624c8d82e8e4f9422525545e0ac125c3b14555
Author: Jonas Jenwald <jonas.jenwald at gmail.com>
Date: Tue Jun 16 12:47:50 2015 +0200
Clear the |getSinglePixelWidth| cache when rendering Type3 fonts (issue 6117)
Fixes 6117.
---
src/display/canvas.js | 1 +
test/pdfs/issue6117.pdf.link | 1 +
test/test_manifest.json | 9 +++++++++
3 files changed, 11 insertions(+)
diff --git a/src/display/canvas.js b/src/display/canvas.js
index ef987f9..8e8deda 100644
--- a/src/display/canvas.js
+++ b/src/display/canvas.js
@@ -1485,6 +1485,7 @@ var CanvasGraphics = (function CanvasGraphicsClosure() {
if (isTextInvisible || fontSize === 0) {
return;
}
+ this.cachedGetSinglePixelWidth = null;
ctx.save();
ctx.transform.apply(ctx, current.textMatrix);
diff --git a/test/pdfs/issue6117.pdf.link b/test/pdfs/issue6117.pdf.link
new file mode 100644
index 0000000..54f34b5
--- /dev/null
+++ b/test/pdfs/issue6117.pdf.link
@@ -0,0 +1 @@
+http://web.archive.org/web/20150402085611/http://chrishecker.com/images/3/33/Gdmogl.pdf
diff --git a/test/test_manifest.json b/test/test_manifest.json
index 1d0595b..aa8b77d 100644
--- a/test/test_manifest.json
+++ b/test/test_manifest.json
@@ -1315,6 +1315,15 @@
"link": true,
"type": "eq"
},
+ { "id": "issue6117",
+ "file": "pdfs/issue6117.pdf",
+ "md5": "691f5f8268e07f3831e8293258a68da7",
+ "rounds": 1,
+ "link": true,
+ "firstPage": 6,
+ "lastPage": 6,
+ "type": "eq"
+ },
{ "id": "cid_cff",
"file": "pdfs/cid_cff.pdf",
"md5": "a19a18eaa626262cc45e0760004d6de9",
--
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